blob: 65ed45e259c5486ecb08fe3d7d0c685cb6209fe5 [file] [log] [blame]
Richard Smith5f9a7e32012-11-12 21:38:00 +00001// RUN: %clang_cc1 -emit-llvm %s -o - -std=c++11 | FileCheck %s
Fariborz Jahanian636a0ff2009-09-02 17:10:17 +00002
3extern "C" int printf(...);
4
5struct S {
6 S() { printf("S::S\n"); }
7};
8
9struct A {
10 double x;
11 A() : x(), y(), s() { printf("x = %f y = %x \n", x, y); }
12 int *y;
13 S s;
14};
15
16A a;
17
Richard Smith5f9a7e32012-11-12 21:38:00 +000018struct B {
19 B() = default;
20 B(const B&);
21};
22
23// CHECK-NOT: _ZL1b
24static B b;
25
26struct C {
27 ~C();
28};
29
30// CHECK: _ZL1c
31static C c[4];
32
Fariborz Jahanian636a0ff2009-09-02 17:10:17 +000033int main() {
34}