diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-08-05 23:31:22 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-08-05 23:31:22 +0000 |
commit | 1cd34b8fea60940f99b6a8ce3fd6418953887125 (patch) | |
tree | 17cb2122b1e210656dee06ab5d52664abe2fbc45 /clang/test | |
parent | 2e7aa5ae1f702c06776dd52861703f88beedf88b (diff) | |
download | bcm5719-llvm-1cd34b8fea60940f99b6a8ce3fd6418953887125.tar.gz bcm5719-llvm-1cd34b8fea60940f99b6a8ce3fd6418953887125.zip |
Revert 136984 and 136927.
llvm-svn: 136998
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/SemaObjC/class-protocol-method-match.m | 6 | ||||
-rw-r--r-- | clang/test/SemaObjC/qualified-protocol-method-conflicts.m | 48 |
2 files changed, 3 insertions, 51 deletions
diff --git a/clang/test/SemaObjC/class-protocol-method-match.m b/clang/test/SemaObjC/class-protocol-method-match.m index 4022ce3aee5..bffdb79e074 100644 --- a/clang/test/SemaObjC/class-protocol-method-match.m +++ b/clang/test/SemaObjC/class-protocol-method-match.m @@ -4,7 +4,7 @@ @protocol Bar @required - (unsigned char) baz; // expected-note {{previous definition is here}} -- (char) ok; // expected-note {{previous definition is here}} +- (char) ok; - (void) also_ok; @end @@ -17,11 +17,11 @@ @protocol Baz <Bar, Bar1> - (void) bar : (unsigned char)arg; // expected-note {{previous definition is here}} -- (void) ok; // expected-warning {{conflicting return type in declaration of 'ok': 'char' vs 'void'}} +- (void) ok; - (char) bak; // expected-note {{previous definition is here}} @end -@interface Foo <Baz> // expected-note {{class is declared here}} +@interface Foo <Baz> - (void) baz; // expected-warning {{conflicting return type in declaration of 'baz': 'unsigned char' vs 'void'}} - (void) bar : (unsigned char*)arg; // expected-warning {{conflicting parameter types in declaration of 'bar:': 'unsigned char' vs 'unsigned char *'}} - (void) ok; diff --git a/clang/test/SemaObjC/qualified-protocol-method-conflicts.m b/clang/test/SemaObjC/qualified-protocol-method-conflicts.m deleted file mode 100644 index 06bf32be3e9..00000000000 --- a/clang/test/SemaObjC/qualified-protocol-method-conflicts.m +++ /dev/null @@ -1,48 +0,0 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s -// rdar://6191214 -// XFAIL: * - -// *** Currently marked XFAIL since the output is nondeterministic. *** - -int x = "hello"; // *** ADDED TO MAKE THIS TEST ALWAYS FAIL. WILL REMOVE WHEN OUTPUT IS STABLE. *** - -@protocol Xint --(void) setX: (int) arg0; // expected-warning 2 {{conflicting parameter types in declaration of 'setX:': 'float' vs 'int'}} \ - // expected-note {{previous definition is here}} -+(int) C; // expected-warning 2 {{conflicting return type in declaration of 'C': 'float' vs 'int'}} \ - // expected-note {{previous definition is here}} -@end - -@protocol Xfloat --(void) setX: (float) arg0; // expected-note 2 {{previous definition is here}} \ - // expected-warning {{conflicting parameter types in declaration of 'setX:': 'int' vs 'float'}} -+(float) C; // expected-warning {{conflicting return type in declaration of 'C': 'int' vs 'float'}} \ - // expected-note 2 {{previous definition is here}} -@end - -@interface A <Xint, Xfloat> // expected-note {{class is declared here}} -@end - -@implementation A --(void) setX: (int) arg0 { } -+(int) C {return 0; } -@end - -@interface B <Xfloat, Xint> // expected-note {{class is declared here}} -@end - -@implementation B --(void) setX: (float) arg0 { } -+ (float) C {return 0.0; } -@end - -@protocol Xint_float<Xint, Xfloat> -@end - -@interface C<Xint_float> // expected-note {{class is declared here}} -@end - -@implementation C --(void) setX: (int) arg0 { } -+ (int) C {return 0;} -@end |