summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/recovery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/recovery.cpp')
-rw-r--r--clang/test/Parser/recovery.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Parser/recovery.cpp b/clang/test/Parser/recovery.cpp
index ff687583c25..784002d5367 100644
--- a/clang/test/Parser/recovery.cpp
+++ b/clang/test/Parser/recovery.cpp
@@ -23,12 +23,15 @@ void g() {
struct S {
int a, b, c;
S();
+ int x // expected-error {{expected ';'}}
+ friend void f()
};
8S::S() : a{ 5 }, b{ 6 }, c{ 2 } { // expected-error {{unqualified-id}}
return;
}
int k;
-int l = k;
+int l = k // expected-error {{expected ';'}}
+constexpr int foo();
5int m = { l }, n = m; // expected-error {{unqualified-id}}
OpenPOWER on IntegriCloud