summaryrefslogtreecommitdiff
path: root/tests/diagnostics/uninitialized-struct-from-constructor.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/diagnostics/uninitialized-struct-from-constructor.slang')
-rw-r--r--tests/diagnostics/uninitialized-struct-from-constructor.slang11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/diagnostics/uninitialized-struct-from-constructor.slang b/tests/diagnostics/uninitialized-struct-from-constructor.slang
index e3c44dca1..a422ac765 100644
--- a/tests/diagnostics/uninitialized-struct-from-constructor.slang
+++ b/tests/diagnostics/uninitialized-struct-from-constructor.slang
@@ -1,4 +1,4 @@
-//TEST:SIMPLE(filecheck=CHK): -target spirv
+//TEST:SIMPLE(filecheck=CHK): -target spirv -entry computeMain
struct TangentSpace
{
@@ -21,4 +21,11 @@ struct TangentSpace
}
//CHK-NOT: warning 41020
-//CHK-NOT: warning 41021 \ No newline at end of file
+//CHK-NOT: warning 41021
+
+[Shader("compute")]
+[NumThreads(4, 1, 1)]
+void computeMain(int3 dispatchThreadID : SV_DispatchThreadID)
+{
+}
+