blob: bed2502128171e8fa4f4f66e11470344c12821a3 [file] [log] [blame]
/* APPLE LOCAL file 4689268 */
/* Check that compiler gracefully exits on duplicate implementaiton of
same class. */
__attribute__((objc_root_class)) @interface Foo
@end
@implementation Foo
- (void) bar { } /* { dg-error "previous definition of" } */
@end
@implementation Foo
- (void) bar { } /* { dg-error "reimplementation of class \'Foo\'" } */
/* { dg-error "redefinition of" "" { target *-*-* } 12 } */
@end