20 lines
523 B
C++
20 lines
523 B
C++
|
// RUN: %clang_cc1 -std=c++11 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
|
||
|
|
||
|
template <typename T>
|
||
|
struct X {
|
||
|
X();
|
||
|
};
|
||
|
|
||
|
// CHECK: define {{.*}} @_ZN1XIbEC2Ev
|
||
|
// CHECK: define {{.*}} @_ZN1XIbEC1Ev
|
||
|
template <> X<bool>::X() = default;
|
||
|
|
||
|
// CHECK: define weak_odr {{.*}} @_ZN1XIiEC2Ev
|
||
|
// CHECK: define weak_odr {{.*}} @_ZN1XIiEC1Ev
|
||
|
template <typename T> X<T>::X() = default;
|
||
|
template X<int>::X();
|
||
|
|
||
|
// CHECK: define linkonce_odr {{.*}} @_ZN1XIcEC1Ev
|
||
|
// CHECK: define linkonce_odr {{.*}} @_ZN1XIcEC2Ev
|
||
|
X<char> x;
|