llvm-for-llvmta/tools/clang/test/CodeGenCXX/default-constructor-for-mem...

22 lines
347 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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