OSDN Git Service

* g++.dg/other/first-global.C: Add -fpie for all pic targets.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / funptr1.C
1 // PR c++/9282
2 // Origin: Thomas Richter <thor@math.tu-berlin.de>
3 // { dg-do compile }
4
5 typedef void (*fptr)();
6
7 struct A
8 {
9     template<int>    static void foo() {}
10     template<fptr f> static void bar() { (*f)(); }
11 };
12
13 fptr f = A::bar< A::foo<0> >;