Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / cxx0x-defaulted-templates.cpp
blob6f4c53331d4d82f9d2a02610747860549f69a5f7
1 // RUN: %clang_cc1 -std=c++11 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
3 template <typename T>
4 struct X {
5 X();
6 };
8 // CHECK: define {{.*}} @_ZN1XIbEC2Ev
9 // CHECK: define {{.*}} @_ZN1XIbEC1Ev
10 template <> X<bool>::X() = default;
12 // CHECK: define weak_odr {{.*}} @_ZN1XIiEC2Ev
13 // CHECK: define weak_odr {{.*}} @_ZN1XIiEC1Ev
14 template <typename T> X<T>::X() = default;
15 template X<int>::X();
17 // CHECK: define linkonce_odr {{.*}} @_ZN1XIcEC1Ev
18 // CHECK: define linkonce_odr {{.*}} @_ZN1XIcEC2Ev
19 X<char> x;