John McCall | 48f9042 | 2013-03-04 07:34:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fdebugger-support -funknown-anytype -emit-llvm -o - %s | FileCheck %s |
| 2 | |
John McCall | 2f8845f | 2013-03-04 07:35:41 +0000 | [diff] [blame] | 3 | // rdar://13025708 |
John McCall | 48f9042 | 2013-03-04 07:34:02 +0000 | [diff] [blame] | 4 | |
| 5 | @interface A @end |
| 6 | void test0(A *a) { |
| 7 | (void) [a test0: (float) 2.0]; |
| 8 | } |
Stephen Lin | 93ab6bf | 2013-08-15 06:47:53 +0000 | [diff] [blame] | 9 | // CHECK-LABEL: define void @_Z5test0P1A( |
John McCall | 48f9042 | 2013-03-04 07:34:02 +0000 | [diff] [blame] | 10 | // 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 |
| 15 | void test1(B *b) { |
| 16 | (void) [b test1: (float) 2.0]; |
| 17 | } |
Stephen Lin | 93ab6bf | 2013-08-15 06:47:53 +0000 | [diff] [blame] | 18 | // CHECK-LABEL: define void @_Z5test1P1B( |
John McCall | 48f9042 | 2013-03-04 07:34:02 +0000 | [diff] [blame] | 19 | // CHECK: call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, float)*)( |
| 20 | |