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