xref: /llvm-project/clang/test/CodeGenObjCXX/unknown-anytype.mm (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fdebugger-support -funknown-anytype -emit-llvm -o - %s | FileCheck %s
2
3@interface A @end
4void test0(A *a) {
5  (void) [a test0: (float) 2.0];
6}
7// CHECK-LABEL: define{{.*}} void @_Z5test0P1A(
8// CHECK: call void @objc_msgSend(
9
10@interface B
11- (void) test1: (__unknown_anytype) x;
12@end
13void test1(B *b) {
14  (void) [b test1: (float) 2.0];
15}
16// CHECK-LABEL: define{{.*}} void @_Z5test1P1B(
17// CHECK: call void @objc_msgSend(
18
19