summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/linkage6.C
blob: 516a24267d0ffdc3c90eb504b746d0b6159e89b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// { dg-options "-fno-weak" }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <typename T>
void f ();

void h () { f<int> (); }

template <void (*X)()>
void g () {}

template <typename T>
void f ()
{
   g<&f<T> >();
}