diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-20 15:37:11 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 15:37:11 -0800 |
| commit | a62be597990966b9516995650baf750ee6a0146b (patch) | |
| tree | 1741b3d5b5859319f278aa6ab821a2f801fd8e08 /tests | |
| parent | 4d20fd329956ac89408b1628a8291fea01bc9a6d (diff) | |
Support link time type specialization. (#3604)
Diffstat (limited to 'tests')
| -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; |
