[clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::inferFrameworkModule()
[llvm-project.git] / clang / test / CodeGenObjCXX / selector-expr-lvalue.mm
blob33132ceee6308f6ffa54cc86ff54c97283844dac
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5  -emit-llvm -o - %s | FileCheck %s
2 // PR7390
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
12 @implementation NSObject
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:)];
19 - (void)setPriority:(int)p {
21 - (void)respondsToSelector:(const SEL &)s ps:(SEL *)s1 {
23 @end