diff options
author | Steve Naroff <snaroff@apple.com> | 2008-01-18 00:39:39 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-01-18 00:39:39 +0000 |
commit | d3cd1e56d19474ac785e54c3915d82d2ad7f7fa9 (patch) | |
tree | 7c6f28f0cb9ffd2e65ed2d2e2646db271a36feb9 /test/Sema/enum.c | |
parent | 51f5499420e3e2344c1e6c3eff4764c4ec0b47ca (diff) |
Sema::FinalizeDeclaratorGroup()...make sure we emit an diagnostic for tentative definitions with incomplete types. Touch up all test cases that are effected.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46152 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/enum.c')
-rw-r--r-- | test/Sema/enum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/enum.c b/test/Sema/enum.c index 169c394c50..890b6a505b 100644 --- a/test/Sema/enum.c +++ b/test/Sema/enum.c @@ -22,9 +22,9 @@ int test() { return sizeof(enum e) ; } -enum gccForwardEnumExtension ve; // expected-warning {{ISO C forbids forward references to 'enum' types}} +enum gccForwardEnumExtension ve; // expected-error {{variable has incomplete type 'enum gccForwardEnumExtension'}} expected-warning{{ISO C forbids forward references to 'enum' types}} int test2(int i) { - ve + i; // expected-error{{invalid operands to binary expression ('enum gccForwardEnumExtension' and 'int')}} + ve + i; } |