summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-12-18 22:25:09 -0800
committerGitHub <noreply@github.com>2024-12-18 22:25:09 -0800
commita80575608e0296e1779c2085b893145893e4cc20 (patch)
tree3521c2b5e646a2728859e177d09820119d4819bb /tests
parentabeb3758f35a48c2012dd3c39d704409c679a652 (diff)
Check decl nesting for namespaces. (#5910)
Diffstat (limited to 'tests')
-rw-r--r--tests/diagnostics/invalid-namespace-nesting.slang7
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