Eric Christopher | 723665f | 2011-08-19 22:16:23 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null -g |
Eric Christopher | 2ba4fde | 2011-08-19 23:17:46 +0000 | [diff] [blame] | 2 | |
Eric Christopher | 723665f | 2011-08-19 22:16:23 +0000 | [diff] [blame] | 3 | template <typename T1,typename T2> |
4 | inline void f(const T1&,const T2&) { } | ||||
5 | |||||
6 | template <typename T1,typename T2,void F(const T1&,const T2&)> | ||||
7 | struct A { | ||||
8 | template <typename T> void g(T& i) { } | ||||
9 | }; | ||||
10 | |||||
11 | int main() { | ||||
12 | int i; | ||||
13 | A<int,int,f> a; | ||||
14 | a.g(i); | ||||
15 | } |