default-constructor-for-members.cpp revision 1d9b5efffaec2349f33510dee2cf2e90c3d2d6aa
1// RUN: clang-cc -triple x86_64-apple-darwin -S %s -o %t-64.s && 2// RUN: FileCheck -check-prefix LP64 --input-file=%t-64.s %s && 3// RUN: clang-cc -triple i386-apple-darwin -S %s -o %t-32.s && 4// RUN: FileCheck -check-prefix LP32 --input-file=%t-32.s %s && 5// RUN: true 6 7extern "C" int printf(...); 8 9struct S { 10 S() { printf("S::S()\n"); } 11 int iS; 12}; 13 14struct M { 15 S ARR_S; 16}; 17 18int main() { 19 M m1; 20} 21 22// CHECK-LP64: call __ZN1SC1Ev 23 24// CHECK-LP32: call L__ZN1SC1Ev 25