diff options
Diffstat (limited to 'tests/diagnostics/syntax-error-intrinsic.slang')
| -rw-r--r-- | tests/diagnostics/syntax-error-intrinsic.slang | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/diagnostics/syntax-error-intrinsic.slang b/tests/diagnostics/syntax-error-intrinsic.slang new file mode 100644 index 000000000..dde54b2ad --- /dev/null +++ b/tests/diagnostics/syntax-error-intrinsic.slang @@ -0,0 +1,20 @@ +// syntax-error-intrinsic.slang + +// NOTE! That although this is a 'diagnostic' like test, it tests using downstream compiler +// the downstream compiler being present is a requirement, so we mark as a 'TEST' so that +// those tests are made. + +//TEST:SIMPLE_LINE:-entry computeMain -target spirv +//TEST:SIMPLE_LINE:-entry computeMain -target dxil -profile cs_6_0 +//TEST:SIMPLE_LINE:-entry computeMain -target dxbc +//TEST:SIMPLE_LINE:-entry computeMain -target dll +//TEST:SIMPLE_LINE:-entry computeMain -target ptx + +[shader("compute")] +[numthreads(4, 1, 1)] +void computeMain() +{ + // Will output what downstream compilers will output as a syntax + // error. + __SyntaxError(); +}
\ No newline at end of file |
