r184519 - Add test.
Eli Friedman
eli.friedman at gmail.com
Thu Jun 20 19:09:51 PDT 2013
Author: efriedma
Date: Thu Jun 20 21:09:51 2013
New Revision: 184519
URL: http://llvm.org/viewvc/llvm-project?rev=184519&view=rev
Log:
Add test.
Modified:
cfe/trunk/test/SemaObjC/class-def-test-1.m
Modified: cfe/trunk/test/SemaObjC/class-def-test-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/class-def-test-1.m?rev=184519&r1=184518&r2=184519&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/class-def-test-1.m (original)
+++ cfe/trunk/test/SemaObjC/class-def-test-1.m Thu Jun 20 21:09:51 2013
@@ -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 {{pr
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 2 {{previous definition is here}}
@interface INTF2 : OBJECT2 @end // expected-error {{redefinition of 'OBJECT2' as different kind of symbol}}
+ at implementation INTF2 : OBJECT2 @end // expected-error {{redefinition of 'OBJECT2' as different kind of symbol}}
@protocol PROTO;
More information about the cfe-commits
mailing list