diff options
Diffstat (limited to 'test/Parser/cxx-undeclared-identifier.cpp')
-rw-r--r-- | test/Parser/cxx-undeclared-identifier.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Parser/cxx-undeclared-identifier.cpp b/test/Parser/cxx-undeclared-identifier.cpp new file mode 100644 index 0000000..36d8f7a --- /dev/null +++ b/test/Parser/cxx-undeclared-identifier.cpp @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s + +class Foo::Bar { // expected-error {{use of undeclared identifier 'Foo'}} \ + // expected-note {{to match this '{'}} \ + // expected-error {{expected ';' after class}} + // expected-error {{expected '}'}} |