diff options
Diffstat (limited to 'test/Parser/switch-recovery.cpp')
-rw-r--r-- | test/Parser/switch-recovery.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/Parser/switch-recovery.cpp b/test/Parser/switch-recovery.cpp index 4b06d55ba5944..a3a0178cd10b6 100644 --- a/test/Parser/switch-recovery.cpp +++ b/test/Parser/switch-recovery.cpp @@ -185,8 +185,9 @@ void pr19022_1a(int x) { void pr19022_1b(int x) { switch(x) { - case v // expected-error{{use of undeclared identifier 'v'}} - } + case v // expected-error{{use of undeclared identifier 'v'}} \ + // expected-error{{expected ':' after 'case'}} + } // expected-error{{expected statement}} } void pr19022_2() { @@ -209,7 +210,8 @@ int pr19022_4(int x) { void pr19022_5(int x) { switch(x) { - case 1: case + case 1: case // expected-error{{expected ':' after 'case'}} \ + // expected-error{{expected statement}} } // expected-error{{expected expression}} } |