diff options
| -rw-r--r-- | clang/test/SemaObjC/class-def-test-1.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/class-def-test-1.m b/clang/test/SemaObjC/class-def-test-1.m index 0d114b99fb6..7931cc3fdce 100644 --- a/clang/test/SemaObjC/class-def-test-1.m +++ b/clang/test/SemaObjC/class-def-test-1.m @@ -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 2 {{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; |

