blob: 2e65332ec974369c015743480048bd64aa9acd40 [file] [log] [blame]
John McCall260611a2012-06-20 06:18:46 +00001// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | \
Anders Carlssoneea64802011-10-31 16:27:11 +00002// RUN: FileCheck --check-prefix=CHECK-X86_32 %s
3//
John McCall260611a2012-06-20 06:18:46 +00004// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | \
Anders Carlssoneea64802011-10-31 16:27:11 +00005// RUN: FileCheck --check-prefix=CHECK-X86_64 %s
6//
John McCall260611a2012-06-20 06:18:46 +00007// RUN: %clang_cc1 -triple armv7-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -target-abi apcs-gnu -o - %s | \
Anders Carlssoneea64802011-10-31 16:27:11 +00008// RUN: FileCheck --check-prefix=CHECK-ARMV7 %s
9
10@interface A
11-(_Complex long double) complexLongDoubleValue;
12@end
13
14
15// CHECK-X86_32: define void @t0()
16// CHECK-X86_32: call void bitcast {{.*}} @objc_msgSend_stret to
17// CHECK-X86_32: }
18//
19// CHECK-X86_64: define void @t0()
20// CHECK-X86_64: call { x86_fp80, x86_fp80 } bitcast {{.*}} @objc_msgSend_fp2ret to
21// CHECK-X86_64: }
22//
23// CHECK-ARMV7: define void @t0()
24// CHECK-ARMV7: call i128 bitcast {{.*}} @objc_msgSend to
25// CHECK-ARMV7: }
26void t0() {
27 [(A*)0 complexLongDoubleValue];
28}