• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:[^ ]*]] = {{.*}}getelementptr{{.*}}[[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 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, i8**, i8**)*){{.*}}, i8** @[[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
24