blob: 88e0205c5846153447c382b1756bca43e1ac8733 [file] [log] [blame]
<!DOCTYPE html>
<html>
<meta charset=utf-8>
<meta name="timeout" content="long">
<title>Test prefix/postfix.</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.badIntLiteralForInt = async () =>
{
await checkFail( "void foo() { int x = 3000000000; }");
}
whlslTests.badIntLiteralForFloat = async () =>
{
await checkFail("void foo() { float x = 5000000000000000000000000000000000000; }");
}
runTests(whlslTests);
</script>
</html>