llvm-project/clang/test/CodeGenCXX/trivial-constructor-init.cpp
Fariborz Jahanian fc60ca8801 Allow null initialization of scalara data members
in constructors's initializer list. pr4854

llvm-svn: 80802
2009-09-02 17:10:17 +00:00

22 lines
287 B
C++

// RUN: clang-cc -S %s -o %t-64.s &&
// RUN: clang-cc -S %s -o %t-32.s &&
// RUN: true
extern "C" int printf(...);
struct S {
S() { printf("S::S\n"); }
};
struct A {
double x;
A() : x(), y(), s() { printf("x = %f y = %x \n", x, y); }
int *y;
S s;
};
A a;
int main() {
}