John McCall | 260611a | 2012-06-20 06:18:46 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s |
Fariborz Jahanian | 03b2960 | 2010-06-17 19:56:20 +0000 | [diff] [blame] | 2 | // PR7390 |
| 3 | |
| 4 | @interface NSObject {} |
Fariborz Jahanian | 949bd4b | 2010-06-17 21:45:48 +0000 | [diff] [blame] | 5 | - (void)respondsToSelector:(const SEL&)s : (SEL*)s1; |
Fariborz Jahanian | 03b2960 | 2010-06-17 19:56:20 +0000 | [diff] [blame] | 6 | - (void) setPriority:(int)p; |
| 7 | - (void)Meth; |
| 8 | @end |
| 9 | |
| 10 | @implementation NSObject |
| 11 | - (void)Meth { |
| 12 | [self respondsToSelector:@selector(setPriority:) : &@selector(setPriority:)]; |
| 13 | } |
| 14 | - (void) setPriority:(int)p{} |
Fariborz Jahanian | 949bd4b | 2010-06-17 21:45:48 +0000 | [diff] [blame] | 15 | - (void)respondsToSelector:(const SEL&)s : (SEL*)s1 {} |
Fariborz Jahanian | 03b2960 | 2010-06-17 19:56:20 +0000 | [diff] [blame] | 16 | @end |