<!DOCTYPE html> | |
<html> | |
<meta charset=utf-8> | |
<meta name="timeout" content="long"> | |
<title>Bad add.</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> | |
<script> | |
const whlslTests = {}; | |
whlslTests.badAdd = async () => | |
{ | |
await checkFail( | |
` | |
void foo(int x, uint y) | |
{ | |
uint z = x + y; | |
} | |
`); | |
} | |
runTests(whlslTests); | |
</script> | |
</html> |