summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/extern1.C
blob: 91b47c1ddbc8307ffb28b7386f340885aba31299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
void f ()
{
  extern int i;
  extern T j;
  
  i = j;
}

template void f<int>();