diff options
| author | Yong He <yonghe@outlook.com> | 2024-12-18 22:25:09 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-18 22:25:09 -0800 |
| commit | a80575608e0296e1779c2085b893145893e4cc20 (patch) | |
| tree | 3521c2b5e646a2728859e177d09820119d4819bb /tests | |
| parent | abeb3758f35a48c2012dd3c39d704409c679a652 (diff) | |
Check decl nesting for namespaces. (#5910)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/diagnostics/invalid-namespace-nesting.slang | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/diagnostics/invalid-namespace-nesting.slang b/tests/diagnostics/invalid-namespace-nesting.slang new file mode 100644 index 000000000..0abb01347 --- /dev/null +++ b/tests/diagnostics/invalid-namespace-nesting.slang @@ -0,0 +1,7 @@ +//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): -target spirv + +struct Type +{ + // CHECK: ([[# @LINE+1]]): error 30102: + namespace ns {} +}
\ No newline at end of file |
