aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/static7.C
blob: edb8e6a8db0e0542073b9a6c5b58e95cfd58be48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/17530
// { dg-do link }

typedef void (*Func) ();
void f (Func) {}
struct B
{
  static void staticfunc () {}
};
template <int> 
void C(){ f (B::staticfunc); }
int main ()
{
  C<0>();
  return 0;
}