From b346a9333ae6d09f053db60b3006e6e074332ac2 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 27 Mar 2024 13:03:28 -0700 Subject: Allow var/param names to be the same as type name. (#3850) --- tests/bugs/gh-3824.slang | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/bugs/gh-3824.slang (limited to 'tests/bugs') 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 -- cgit v1.2.3