diff options
author | John McCall <rjmccall@apple.com> | 2010-03-31 02:13:20 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-03-31 02:13:20 +0000 |
commit | 7727acf243ee61c0757d86c95b69dbee56a3d898 (patch) | |
tree | 7d0e27420e5bf67084dfceef74710da60a4d0171 /test/Sema/init.c | |
parent | 32daa4223ccb2c0afe5fbe151c6eb1ab64816957 (diff) |
Fix PR6327: restore invariants when there's a parse error in an initializer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/init.c')
-rw-r--r-- | test/Sema/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Sema/init.c b/test/Sema/init.c index c2712480c6..b9867cf502 100644 --- a/test/Sema/init.c +++ b/test/Sema/init.c @@ -75,7 +75,8 @@ int sym_fw1a_scr[] = { }; // PR3001 -struct s1 s2 = { +struct s1 s2 = { // expected-error {{variable has incomplete type 'struct s1'}} \ + // expected-note {{forward declaration of 'struct s1'}} .a = sizeof(struct s3), // expected-error {{invalid application of 'sizeof'}} \ // expected-note{{forward declaration of 'struct s3'}} .b = bogus // expected-error {{use of undeclared identifier 'bogus'}} |