diff options
Diffstat (limited to 'test/Parser/recovery.c')
-rw-r--r-- | test/Parser/recovery.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Parser/recovery.c b/test/Parser/recovery.c index 6cd95da..1b33f02 100644 --- a/test/Parser/recovery.c +++ b/test/Parser/recovery.c @@ -78,3 +78,9 @@ void foo() { // rdar://7980651 typedef int intptr_t; // expected-note {{'intptr_t' declared here}} void bar(intptr y); // expected-error {{unknown type name 'intptr'; did you mean 'intptr_t'?}} + +void test1(void) { + int x = 2: // expected-error {{expected ';' at end of declaration}} + int y = x; + int z = y; +} |