]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/address-of-fntemplate.cpp
Update clang to r84949.
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / address-of-fntemplate.cpp
1 // RUN: clang-cc %s -emit-llvm -o - | FileCheck %s
2 template <typename T> void f(T) {}
3 template <typename T> void f() { }
4
5 void test() {
6   // CHECK: @_Z1fIiEvT_
7   void (*p)(int) = &f;
8   
9   // CHECK: @_Z1fIiEvv
10   void (*p2)() = f<int>;
11 }
12 // CHECK: define linkonce_odr void @_Z1fIiEvT_
13 // CHECK: define linkonce_odr void @_Z1fIiEvv