summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/DoubleMethod.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/DoubleMethod.m')
-rw-r--r--test/SemaObjC/DoubleMethod.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaObjC/DoubleMethod.m b/test/SemaObjC/DoubleMethod.m
index 98aa699..4eca4c7 100644
--- a/test/SemaObjC/DoubleMethod.m
+++ b/test/SemaObjC/DoubleMethod.m
@@ -1,12 +1,12 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -Wduplicate-method-match -fsyntax-only -verify -Wno-objc-root-class %s
@interface Subclass
{
int ivar;
}
-- (void) method;
-- (void) method;
+- (void) method; // expected-note {{previous declaration is here}}
+- (void) method; // expected-warning {{multiple declarations of method 'method' found and ignored}}
@end
@implementation Subclass
OpenPOWER on IntegriCloud