1 // REQUIRES: x86-registered-target,x86-64-registered-target
2 // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -S %s -o %t-64.s
3 // RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s
4 // RUN: %clang_cc1 -triple i386-apple-darwin -std=c++11 -S %s -o %t-32.s
5 // RUN: FileCheck -check-prefix CHECK-LP32 --input-file=%t-32.s %s
7 extern "C" int printf(...);
11 X(int) : iX(2), fX(2.3) , name("HELLO\n") { }
13 X(const char* arg, int ix=0) { iX = ix; fX = 6.0; name = arg+ix; }
14 X(): iX(100), fX(1.2) {}
19 printf("iX = %d fX = %f name = %s\n", iX, fX, name);
32 X b = "Jessie"; // b=X("Jessie",0)
49 // CHECK-LP64: callq __ZN1XC1Ei
50 // CHECK-LP64: callq __ZN1XC1EPKci
51 // CHECK-LP64: callq __ZN1XC1Ev
53 // CHECK-LP32: calll L__ZN1XC1Ei
54 // CHECK-LP32: calll L__ZN1XC1EPKci
55 // CHECK-LP32: calll L__ZN1XC1Ev