1 // RUN: %clang_cc1 -std=c++11 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s 2 3 template <typename T> 4 struct X { 5 X(); 6 }; 7 8 // CHECK: define {{.*}} @_ZN1XIbEC2Ev 9 // CHECK: define {{.*}} @_ZN1XIbEC1Ev 10 template <> X<bool>::X() = default; 11 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(); 16 17 // CHECK: define linkonce_odr {{.*}} @_ZN1XIcEC1Ev 18 // CHECK: define linkonce_odr {{.*}} @_ZN1XIcEC2Ev 19 X<char> x; 20