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