aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/PR166843.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/PR166843.cpp')
-rw-r--r--clang/test/Sema/PR166843.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Sema/PR166843.cpp b/clang/test/Sema/PR166843.cpp
new file mode 100644
index 0000000..5a6223b
--- /dev/null
+++ b/clang/test/Sema/PR166843.cpp
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only %s -verify
+namespace a {
+template <class b>
+void c() {
+ ((::c::x)); // expected-error {{'c' is not a class, namespace, or enumeration}}
+}
+}