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

int i = 1;

template <class T> void test()
{
  goto lab;
 lab: 
  --i;
}

int main ()
{
  test<int>();
  return i;
}