summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/array33.C
blob: 4440d3d5432dddb0fd5de018e5de089f18a8fc93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// PR c++/55804
// { dg-do run }

int t = 0;
template <typename> struct vector {
  vector() { t++; }
};

typedef vector<int> Arrays[1];
class C
{
    vector<int> v_;
    void Foo(const Arrays &);
};
Arrays a;

int main(void)
{
  if (t!=1)
    __builtin_abort ();
  return 0;
}