summaryrefslogtreecommitdiff
path: root/tests/diagnostics/packoffset.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/diagnostics/packoffset.slang')
-rw-r--r--tests/diagnostics/packoffset.slang11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/diagnostics/packoffset.slang b/tests/diagnostics/packoffset.slang
new file mode 100644
index 000000000..31ee63bbd
--- /dev/null
+++ b/tests/diagnostics/packoffset.slang
@@ -0,0 +1,11 @@
+// packoffset.slang
+//TEST:SIMPLE:-target hlsl
+
+// use of `packoffset` (not supported):
+cbuffer B
+{
+ float4 x : packoffset(c0);
+}
+
+void main()
+{} \ No newline at end of file