Remove a fixme which was fixed in a previous commit.
[clang.git] / test / SemaObjC / method-attributes.m
blob9157fcfefe114700de252380f7ff10bdf3424fa1
1 // RUN: %clang_cc1 -verify -fsyntax-only %s
3 @class NSString;
5 @interface A
6 -t1 __attribute__((noreturn));
7 - (NSString *)stringByAppendingFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2)));
8 -(void) m0 __attribute__((noreturn));
9 -(void) m1 __attribute__((unused));
10 @end
13 @interface INTF
14 - (int) foo1: (int)arg1 __attribute__((deprecated));
16 - (int) foo: (int)arg1; 
18 - (int) foo2: (int)arg1 __attribute__((deprecated)) __attribute__((unavailable));
19 @end
21 @implementation INTF
22 - (int) foo: (int)arg1  __attribute__((deprecated)){ // expected-warning {{method attribute can only be specified}}
23         return 10;
25 - (int) foo1: (int)arg1 {
26         return 10;
28 - (int) foo2: (int)arg1 __attribute__((deprecated)) {  // expected-warning {{method attribute can only be specified}}
29         return 10;
31 @end