blob: b97e002833c98abb1454cf9eca480894190abe27 [file] [log] [blame]
Ted Kremenek422bae72010-04-18 04:59:38 +00001// 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