minix/external/bsd/llvm/dist/clang/test/CodeGenCXX/trivial-constructor-init.cpp
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

34 lines
397 B
C++

// RUN: %clang_cc1 -emit-llvm %s -o - -std=c++11 | FileCheck %s
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;
struct B {
B() = default;
B(const B&);
};
// CHECK-NOT: _ZL1b
static B b;
struct C {
~C();
};
// CHECK: _ZL1c
static C c[4];
int main() {
}