xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/2009-03-17-dbg.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o /dev/null -g
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc template <typename T1,typename T2>
f(const T1 &,const T2 &)4*f4a2713aSLionel Sambuc inline void f(const T1&,const T2&) { }
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc template <typename T1,typename T2,void F(const T1&,const T2&)>
7*f4a2713aSLionel Sambuc struct A {
gA8*f4a2713aSLionel Sambuc     template <typename T> void g(T& i) { }
9*f4a2713aSLionel Sambuc };
10*f4a2713aSLionel Sambuc 
main()11*f4a2713aSLionel Sambuc int main() {
12*f4a2713aSLionel Sambuc     int i;
13*f4a2713aSLionel Sambuc     A<int,int,f> a;
14*f4a2713aSLionel Sambuc     a.g(i);
15*f4a2713aSLionel Sambuc }
16