diff options
Diffstat (limited to 'test/Parser/annotation-token-in-lexed-body.cpp')
-rw-r--r-- | test/Parser/annotation-token-in-lexed-body.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Parser/annotation-token-in-lexed-body.cpp b/test/Parser/annotation-token-in-lexed-body.cpp new file mode 100644 index 0000000..bcc9de1 --- /dev/null +++ b/test/Parser/annotation-token-in-lexed-body.cpp @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +struct S { // expected-note{{to match this}} + void f() { // expected-note{{to match this}} + // expected-error@+1{{expected '}'}} expected-error@+1{{expected '}'}} expected-error@+1{{expected ';'}} +#pragma pack() |