aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/annotation-token-in-lexed-body.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/annotation-token-in-lexed-body.cpp')
-rw-r--r--test/Parser/annotation-token-in-lexed-body.cpp5
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 000000000000..bcc9de111a27
--- /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()