diff options
Diffstat (limited to 'tests/diagnostics')
| -rw-r--r-- | tests/diagnostics/incomplete-type.slang | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/diagnostics/incomplete-type.slang b/tests/diagnostics/incomplete-type.slang new file mode 100644 index 000000000..873673045 --- /dev/null +++ b/tests/diagnostics/incomplete-type.slang @@ -0,0 +1,11 @@ +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): + +extern struct ExtType; + +struct MyType +{ + ExtType arr[2]; +} + +// CHECK: ([[#@LINE+1]]): error 31204 +ConstantBuffer<MyType> buffer; |
