blob: 18bfea8c6cf4c2d1d8edd0df55dbd4d70c9ad88a [file] [edit]
<html>
<body>
<script>
const doTest = async () => {
const adapter = await navigator.gpu.requestAdapter();
const device = await adapter.requestDevice();
const module = device.createShaderModule({
code: `
struct S { x : u23 }
@must_use fn foo() -> S { return S(); }
`,
});
if (window.testRunner) { testRunner.notifyDone() }
};
if (window.testRunner) { testRunner.waitUntilDone(); testRunner.dumpAsText() }
doTest();
</script>
This test passes if it does not crash.
</body>
</html>