summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-03-27 13:03:28 -0700
committerGitHub <noreply@github.com>2024-03-27 13:03:28 -0700
commitb346a9333ae6d09f053db60b3006e6e074332ac2 (patch)
treeddbbd33bb93fb858deb8c2c94b8905d8e2c562ea /tests/bugs
parent8395acfa0ad8379011e4470b94362189cafac93f (diff)
Allow var/param names to be the same as type name. (#3850)
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/gh-3824.slang20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/bugs/gh-3824.slang b/tests/bugs/gh-3824.slang
new file mode 100644
index 000000000..1d2d3685f
--- /dev/null
+++ b/tests/bugs/gh-3824.slang
@@ -0,0 +1,20 @@
+//TEST:SIMPLE(filecheck=CHECK):-target spirv -emit-spirv-directly
+
+// CHECK: OpEntryPoint
+
+namespace example {
+ struct Example {}
+}
+
+struct Struct {
+ example::Example example;
+}
+
+void func(Struct Struct)
+{
+ // Test parameter name to be the same as type name.
+}
+
+[numthreads(1,1,1)]
+void main()
+{} \ No newline at end of file