| <meta name="timeout" content="long"> |
| <title>Test loops.</title> |
| <script src="js/test-harness.js"></script> |
| <script src="../js/webgpu-functions.js"></script> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| whlslTests.dereferenceDefaultNullArrayRef = async () => |
| assert_equals(await callIntFunction(program, "foo", []), 0); |
| whlslTests.defaultInitializedNullArrayRefIntLiteral = async () => |
| assert_equals(await callIntFunction(program, "foo", []), 0); |
| whlslTests.passNullToPtrMonomorphicArrayRef = async () => |
| int foo(thread int[] ptr) |
| assert_equals(await callIntFunction(program, "bar", []), 0); |
| whlslTests.loadNull = async () => |
| void sink(thread int* x) { } |
| void foo() { sink(*null); } |