| 1 |
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s |
| 2 |
// PR7390 |
| 3 |
|
| 4 |
// CHECK: @[[setprioname:[^ ]*]] = {{.*}}"setPriority: |
| 5 |
// CHECK-NEXT: @[[setpriosel:[^ ]*]] = {{.*}}[[setprioname]] |
| 6 |
@interface NSObject |
| 7 |
- (void)respondsToSelector:(const SEL &)s ps:(SEL *)s1; |
| 8 |
- (void)setPriority:(int)p; |
| 9 |
- (void)Meth; |
| 10 |
@end |
| 11 |
|
| 12 |
@implementation NSObject |
| 13 |
|
| 14 |
// CHECK-LABEL: define internal void @"\01-[NSObject Meth]"( |
| 15 |
- (void)Meth { |
| 16 |
// CHECK: call void @objc_msgSend{{.*}}, ptr noundef @[[setpriosel]]) |
| 17 |
[self respondsToSelector:@selector(setPriority:) ps:&@selector(setPriority:)]; |
| 18 |
} |
| 19 |
- (void)setPriority:(int)p { |
| 20 |
} |
| 21 |
- (void)respondsToSelector:(const SEL &)s ps:(SEL *)s1 { |
| 22 |
} |
| 23 |
@end |