1 // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -triple %ms_abi_triple -emit-llvm -o - %s | FileCheck %s -check-prefix MS
3 // CHECK-NOT: _ZN1CC1ERK1C
4 // CHECK-NOT: _ZN1SC1ERK1S
5 // MS-NOT: ?0C@@QAE@ABV0
6 // MS-NOT: ?0S@@QAE@ABV0
8 extern "C" int printf(...);
12 C() : iC(6) {printf("C()\n"); }
13 C(const C
& c
) { printf("C(const C& c)\n"); }
24 X(const X
&, int i
= 1, int j
= 2, C c
= foo()) {
25 printf("X(const X&, %d, %d, %d)\n", i
, j
, c
.iC
);
34 S::S() { printf("S()\n"); }
51 typedef V V_over_aligned
__attribute((aligned(8)));
52 extern const V_over_aligned gv1
= {};
54 extern "C" V
f() { return gv1
; }
56 // Make sure that we obey the destination's alignment requirements when emitting
58 // CHECK-LABEL: define {{.*}} @f(
59 // CHECK: call void @llvm.memcpy.p0i8.p0i8.{{i64|i32}}({{.*}}align 4{{.*}}, i8* align 8 bitcast (%struct.V* @gv1 to i8*), {{i64|i32}} 4, i1 false)