diff options
Diffstat (limited to 'test/CodeGenCXX/trivial-constructor-init.cpp')
-rw-r--r-- | test/CodeGenCXX/trivial-constructor-init.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/test/CodeGenCXX/trivial-constructor-init.cpp b/test/CodeGenCXX/trivial-constructor-init.cpp index 343dc65..65ed45e 100644 --- a/test/CodeGenCXX/trivial-constructor-init.cpp +++ b/test/CodeGenCXX/trivial-constructor-init.cpp @@ -1,5 +1,4 @@ -// RUN: %clang_cc1 -S %s -o %t-64.s -// RUN: %clang_cc1 -S %s -o %t-32.s +// RUN: %clang_cc1 -emit-llvm %s -o - -std=c++11 | FileCheck %s extern "C" int printf(...); @@ -16,5 +15,20 @@ struct A { 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() { } |