]> granicus.if.org Git - clang/commitdiff
Add test.
authorEli Friedman <eli.friedman@gmail.com>
Fri, 21 Jun 2013 02:09:51 +0000 (02:09 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 21 Jun 2013 02:09:51 +0000 (02:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184519 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/class-def-test-1.m

index 0d114b99fb6db016066f51223d52994235fce6c7..7931cc3fdce49f8e597d96126482e03e5795e5e4 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
 
 @protocol SUPER;
 
@@ -16,9 +16,10 @@ typedef int INTF; //  expected-note {{previous definition is here}}
 
 typedef int OBJECT; // expected-error {{redefinition of 'OBJECT' as different kind of symbol}}
 
-typedef int OBJECT2; // expected-note {{previous definition is here}}
+typedef int OBJECT2; // expected-note {{previous definition is here}}
 @interface INTF2 : OBJECT2 @end // expected-error {{redefinition of 'OBJECT2' as different kind of symbol}}
 
+@implementation INTF2 : OBJECT2 @end // expected-error {{redefinition of 'OBJECT2' as different kind of symbol}}
 
 @protocol PROTO;