From a62be597990966b9516995650baf750ee6a0146b Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 20 Feb 2024 15:37:11 -0800 Subject: Support link time type specialization. (#3604) --- tests/diagnostics/incomplete-type.slang | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/diagnostics/incomplete-type.slang (limited to 'tests') 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 buffer; -- cgit v1.2.3