diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
commit | bca07a4524feb4edec581062d631a13116320a24 (patch) | |
tree | a9243275843fbeaa590afc07ee888e006b8d54ea /test/Parser/recovery.c | |
parent | 998bc5802ecdd65ce3b270f6c69a8ae8557f0a10 (diff) | |
download | src-test2-bca07a4524feb4edec581062d631a13116320a24.tar.gz src-test2-bca07a4524feb4edec581062d631a13116320a24.zip |
Notes
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 6cd95da878d2..1b33f0225bce 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; +} |