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(...);
22 X(const X&, int i = 1, int j = 2, int k = foo()) {
23 printf("X(const X&, %d, %d, %d)\n", i, j, k);
34 // CHECK-LP64: callq __ZN1XC1ERKS_iii
35 // CHECK-LP64: callq __ZN1XC1ERKS_iii
36 // CHECK-LP64: callq __ZN1XC1ERKS_iii
38 // CHECK-LP32: calll L__ZN1XC1ERKS_iii
39 // CHECK-LP32: calll L__ZN1XC1ERKS_iii
40 // CHECK-LP32: calll L__ZN1XC1ERKS_iii