1 // RUN: clang-cc -verify -fsyntax-only %s
6 -t1 __attribute__((noreturn));
7 - (NSString *)stringByAppendingFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2)));
8 -(void) m0 __attribute__((noreturn));
9 -(void) m1 __attribute__((unused));
14 - (int) foo1: (int)arg1 __attribute__((deprecated));
16 - (int) foo: (int)arg1;
18 - (int) foo2: (int)arg1 __attribute__((deprecated)) __attribute__((unavailable));
22 - (int) foo: (int)arg1 __attribute__((deprecated)){ // expected-warning {{method attribute can only be specified}}
25 - (int) foo1: (int)arg1 {
28 - (int) foo2: (int)arg1 __attribute__((deprecated)) { // expected-warning {{method attribute can only be specified}}