summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/local3.C
blob: 6c0fe4573e05ef6749eb9e6cad02ee3dcf61a185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// { dg-do run  }
extern "C" void abort();

template <class T>
void f(T)
{
  int j;

  j = 6;

  struct S {
    int i;
  };

  S s;

  s.i = j;

  if (s.i != 6)
    abort();
}


int main()
{
  f(7);
}