John McCall | 5fb5df9 | 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 | 9240f3d | 2010-06-17 19:56:20 +0000 | [diff] [blame] | 2 | // PR7390 |
| 3 | |
| 4 | @interface NSObject {} |
Fariborz Jahanian | 6fdb139 | 2010-06-17 21:45:48 +0000 | [diff] [blame] | 5 | - (void)respondsToSelector:(const SEL&)s : (SEL*)s1; |
Fariborz Jahanian | 9240f3d | 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 | 6fdb139 | 2010-06-17 21:45:48 +0000 | [diff] [blame] | 15 | - (void)respondsToSelector:(const SEL&)s : (SEL*)s1 {} |
Fariborz Jahanian | 9240f3d | 2010-06-17 19:56:20 +0000 | [diff] [blame] | 16 | @end |