aboutsummaryrefslogblamecommitdiff
path: root/test/CodeGenCXX/default-constructor-for-members.cpp
blob: 5eb8cd1767bb3a5a8bfa7ba30b967bc9e1065163 (plain) (tree)
1
2
3
4



                                                                     















                             
                              
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o - | \
// RUN: FileCheck %s
// RUN: %clang_cc1 -triple i386-apple-darwin -emit-llvm %s -o - | \
// RUN: FileCheck %s

extern "C" int printf(...);

struct S {
  S() { printf("S::S()\n"); }
  int iS;
};

struct M {
  S ARR_S; 
};

int main() {
  M m1;
}

// CHECK: call void @_ZN1SC1Ev