<svg onload="runTest()">
  <defs>
    <g id="g">
      <svg>
        <linearGradient>
          <animateTransform attributeName="a">
        </linearGradient>
      </svg>
    </g>
  </defs>
  <use xlink:href="#g"></use>
</svg>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function runTest() {
    document.body.innerHTML = "PASS: Referenced animation does not trigger crash.";
}
</script>
