1 // RUN: %clang_cc1 -no-opaque-pointers -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK-MAC
2 // RUN: %clang_cc1 -no-opaque-pointers -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK-MAC-NF
3 // RUN: %clang_cc1 -no-opaque-pointers -fobjc-runtime=gcc -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK-GNU
4 // RUN: %clang_cc1 -no-opaque-pointers -fobjc-runtime=gnustep -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK-GNU-NF
16 // CHECK-MAC: call {{.*}} @objc_msgSend to
17 // CHECK-MAC-NF: call {{.*}} @objc_msgSend to
18 // CHECK-GNU: call {{.*}} @objc_msg_lookup(
19 // CHECK-GNU-NF: call {{.*}} @objc_msg_lookup_sender(
22 // CHECK-MAC: call {{.*}} @objc_msgSend to
23 // CHECK-MAC-NF: call {{.*}} @objc_msgSend to
24 // CHECK-GNU: call {{.*}} @objc_msg_lookup(
25 // CHECK-GNU-NF: call {{.*}} @objc_msg_lookup_sender(
28 // CHECK-MAC: call {{.*}} @objc_msgSend to
29 // CHECK-MAC-NF: call {{.*}} @objc_msgSend to
30 // CHECK-GNU: call {{.*}} @objc_msg_lookup(
31 // CHECK-GNU-NF: call {{.*}} @objc_msg_lookup_sender(
32 [a print2: 10 and: "hello" and: 2.2];
34 // CHECK-MAC: call {{.*}} @objc_msgSend to
35 // CHECK-MAC-NF: call {{.*}} @objc_msgSend to
36 // CHECK-GNU: call {{.*}} @objc_msg_lookup(
37 // CHECK-GNU-NF: call {{.*}} @objc_msg_lookup_sender(
40 void *s = @selector(print0);
42 // CHECK-MAC: call {{.*}} @objc_msgSend to
43 // CHECK-MAC-NF: call {{.*}} @objc_msgSend to
44 // CHECK-GNU: call {{.*}} @objc_msg_lookup(
45 // CHECK-GNU-NF: call {{.*}} @objc_msg_lookup_sender(
46 [a performSelector:s];