summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash3.C
blob: 21aa57b1e94551d7f0485f07d22ff9ddad9649bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct S {
};

extern S i[];

void g (S*);

template <typename T>
void f () {
  g (&i[2]);
}