Home | History | Annotate | Download | only in CodeGenObjC
      1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | \
      2 // RUN:   FileCheck --check-prefix=CHECK-X86_32 %s
      3 //
      4 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | \
      5 // RUN:   FileCheck --check-prefix=CHECK-X86_64 %s
      6 //
      7 // RUN: %clang_cc1 -triple armv7-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -target-abi apcs-gnu -o - %s | \
      8 // 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: }
     26 void t0() {
     27   [(A*)0 complexLongDoubleValue];
     28 }
     29