f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
34 lines
397 B
C++
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() {
|
|
}
|