2011-10-14 06:29:44 +08:00
|
|
|
// RUN: %clang_cc1 -std=c++11 -emit-llvm -o - %s | FileCheck %s
|
2011-05-24 07:56:01 +08:00
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
struct X {
|
|
|
|
X();
|
|
|
|
};
|
|
|
|
|
2011-06-14 06:51:21 +08:00
|
|
|
// CHECK: define {{.*}} @_ZN1XIbEC1Ev
|
|
|
|
// CHECK: define {{.*}} @_ZN1XIbEC2Ev
|
2011-05-24 07:56:01 +08:00
|
|
|
template <> X<bool>::X() = default;
|
|
|
|
|
2011-06-14 06:51:21 +08:00
|
|
|
// CHECK: define weak_odr {{.*}} @_ZN1XIiEC1Ev
|
|
|
|
// CHECK: define weak_odr {{.*}} @_ZN1XIiEC2Ev
|
2011-05-24 07:56:01 +08:00
|
|
|
template <typename T> X<T>::X() = default;
|
|
|
|
template X<int>::X();
|
|
|
|
|
2011-06-14 06:51:21 +08:00
|
|
|
// CHECK: define linkonce_odr {{.*}} @_ZN1XIcEC1Ev
|
|
|
|
// CHECK: define linkonce_odr {{.*}} @_ZN1XIcEC2Ev
|
2011-05-24 07:56:01 +08:00
|
|
|
X<char> x;
|