blob: 4731fcc76dfead20e33ec8ceec2e2e759ba90012 [file] [log] [blame]
John McCall48f90422013-03-04 07:34:02 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fdebugger-support -funknown-anytype -emit-llvm -o - %s | FileCheck %s
2
John McCall2f8845f2013-03-04 07:35:41 +00003// rdar://13025708
John McCall48f90422013-03-04 07:34:02 +00004
5@interface A @end
6void test0(A *a) {
7 (void) [a test0: (float) 2.0];
8}
Stephen Lin93ab6bf2013-08-15 06:47:53 +00009// CHECK-LABEL: define void @_Z5test0P1A(
John McCall48f90422013-03-04 07:34:02 +000010// CHECK: call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, float)*)(
11
12@interface B
13- (void) test1: (__unknown_anytype) x;
14@end
15void test1(B *b) {
16 (void) [b test1: (float) 2.0];
17}
Stephen Lin93ab6bf2013-08-15 06:47:53 +000018// CHECK-LABEL: define void @_Z5test1P1B(
John McCall48f90422013-03-04 07:34:02 +000019// CHECK: call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, float)*)(
20