Ted Kremenek | 422bae7 | 2010-04-18 04:59:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -verify |
2 | |||||
3 | @interface Foo | ||||
4 | { | ||||
5 | __attribute__((iboutlet)) id myoutlet; | ||||
6 | } | ||||
7 | - (void) __attribute__((ibaction)) myMessage:(id)msg; | ||||
8 | @end | ||||
9 | |||||
10 | @implementation Foo | ||||
11 | // Normally attributes should not be attached to method definitions, but | ||||
12 | // we allow 'ibaction' to be attached because it can be expanded from | ||||
13 | // the IBAction macro. | ||||
14 | - (void) __attribute__((ibaction)) myMessage:(id)msg {} // no-warning | ||||
15 | @end |