default-constructor-for-members.cpp revision 2475d76920b43014e661690836642ca3c9967179
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
6extern "C" int printf(...);
7
8struct S {
9  S() { printf("S::S()\n"); }
10  int iS;
11};
12
13struct M {
14  S ARR_S;
15};
16
17int main() {
18  M m1;
19}
20
21// CHECK-LP64: call __ZN1SC1Ev
22
23// CHECK-LP32: call L__ZN1SC1Ev
24