summaryrefslogtreecommitdiffstats
path: root/test/Parser/cxx-undeclared-identifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/cxx-undeclared-identifier.cpp')
-rw-r--r--test/Parser/cxx-undeclared-identifier.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Parser/cxx-undeclared-identifier.cpp b/test/Parser/cxx-undeclared-identifier.cpp
index 36d8f7a..f15deab 100644
--- a/test/Parser/cxx-undeclared-identifier.cpp
+++ b/test/Parser/cxx-undeclared-identifier.cpp
@@ -1,5 +1,8 @@
// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
+// PR7180
+int f(a::b::c); // expected-error {{use of undeclared identifier 'a'}}
+
class Foo::Bar { // expected-error {{use of undeclared identifier 'Foo'}} \
// expected-note {{to match this '{'}} \
// expected-error {{expected ';' after class}}
OpenPOWER on IntegriCloud