blob: bae04169ca631a907312bc74c7d2c8da5719646c [file] [log] [blame]
<!DOCTYPE html>
<html>
<meta charset=utf-8>
<meta name="timeout" content="long">
<title>Bad add.</title>
<script src="js/whlsl-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>