1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm %s -o - | \
3 // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -emit-llvm %s -o - | \
6 extern "C" int printf(...);
10 X(int) : iX(2), fX(2.3) , name("HELLO\n") { }
12 X(const char* arg
, int ix
=0) { iX
= ix
; fX
= 6.0; name
= arg
+ix
; }
13 X(): iX(100), fX(1.2) {}
18 printf("iX = %d fX = %f name = %s\n", iX
, fX
, name
);
31 X b
= "Jessie"; // b=X("Jessie",0)
48 // CHECK: call void @_ZN1XC1Ei
49 // CHECK: call void @_ZN1XC1EPKci
50 // CHECK: call void @_ZN1XC1Ev