diff options
Diffstat (limited to 'tests/preprocessor/circular-include/a.slang')
| -rw-r--r-- | tests/preprocessor/circular-include/a.slang | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/preprocessor/circular-include/a.slang b/tests/preprocessor/circular-include/a.slang new file mode 100644 index 000000000..fe519dd12 --- /dev/null +++ b/tests/preprocessor/circular-include/a.slang @@ -0,0 +1,7 @@ +//TEST:SIMPLE(filecheck=CHECK): -target spirv + +// Test that we can diagnose an error when there is a circular include. + +// CHECK: error 15302: cyclic `#include` of file + +#include "b.slang"
\ No newline at end of file |
