From c28a22fb8b505ff48ca0814ca290ee4f698aa38b Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 20 Mar 2024 13:33:13 -0700 Subject: Fix namespace parsing. (#3803) * Fix namespace parsing. * Fix. --- tests/bugs/gh-3802.slang | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/bugs/gh-3802.slang (limited to 'tests') diff --git a/tests/bugs/gh-3802.slang b/tests/bugs/gh-3802.slang new file mode 100644 index 000000000..7b09592f3 --- /dev/null +++ b/tests/bugs/gh-3802.slang @@ -0,0 +1,11 @@ +//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-directly + +namespace foo::bar::baz {} +namespace foo::bar {} // <- leaving this out "fixes" the issue + +// CHECK: OpEntryPoint + +[shader("compute")] +[numthreads(1, 1, 1)] +void computeMain() +{} \ No newline at end of file -- cgit v1.2.3