summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-02-13 13:09:11 -0800
committerGitHub <noreply@github.com>2025-02-13 13:09:11 -0800
commitadde2626720f23a5fd7151f6fb9109db14fc9263 (patch)
tree9ea4d2f0bfc9549c2e10b315b9d456264e66e649 /tests
parent1ea2ab1b638b0e6d2c385b2b06157e6109417e6b (diff)
Fix modifier parsing. (#6347)
* Fix modifier parsing. * Fix. * Fix. * Fix.
Diffstat (limited to 'tests')
-rw-r--r--tests/front-end/in-redeclare.slang11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/front-end/in-redeclare.slang b/tests/front-end/in-redeclare.slang
new file mode 100644
index 000000000..4c6de94a9
--- /dev/null
+++ b/tests/front-end/in-redeclare.slang
@@ -0,0 +1,11 @@
+//TEST:SIMPLE(filecheck=CHECK):-target spirv
+
+// CHECK: OpEntryPoint
+
+struct Foo{ float4 v; }
+
+[shader("vertex")]
+float4 vert(in Foo in, in Foo o) : SV_Position
+{
+ return in.v;
+} \ No newline at end of file