diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-20 13:33:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-20 13:33:13 -0700 |
| commit | c28a22fb8b505ff48ca0814ca290ee4f698aa38b (patch) | |
| tree | 30cf242ae893c6dee3a3fdd3cf6228ffb01e2029 /tests/bugs | |
| parent | 04ffa84c95b68ae50c25d32703fa9e6d49d2a10a (diff) | |
Fix namespace parsing. (#3803)
* Fix namespace parsing.
* Fix.
Diffstat (limited to 'tests/bugs')
| -rw-r--r-- | tests/bugs/gh-3802.slang | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
