summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/spirv/pointer-bug-3.slang10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/spirv/pointer-bug-3.slang b/tests/spirv/pointer-bug-3.slang
new file mode 100644
index 000000000..60fa70a6e
--- /dev/null
+++ b/tests/spirv/pointer-bug-3.slang
@@ -0,0 +1,10 @@
+//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-directly -O0
+
+[[vk::push_constant]] float4 *positions;
+[shader("vertex")]
+float4 main()
+{
+ return positions[0];
+}
+// NOT %cbuffer__t = OpTypeStruct %_ptr_Function_v4float
+// CHECK: %cbuffer__t = OpTypeStruct %_ptr_PhysicalStorageBuffer_v4float