| // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s |
| template<class T> void f(T) { /* ... */ } |
| template<class T> inline void g(T) { /* ... */ } |
| // CHECK: define void @_Z1gIiEvT_ |
| template<> void g<>(int) { /* ... */ } |
| // CHECK: define void @_ZN1XIiE1fEv |
| template<> void X<int>::f() { } |
| // CHECK: define void @_ZN1XIiE1hEv |
| template<> void X<int>::h() { } |
| // CHECK: define linkonce_odr void @_Z1fIiEvT_ |
| template<> inline void f<>(int) { /* ... */ } |
| // CHECK: define linkonce_odr void @_ZN1XIiE1gEv |
| template<> inline void X<int>::g() { } |