summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/complit8.C
blob: 97ff563feec16a17c1c892f42e5f2f702a06bcec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/27270
// { dg-options "" }

template<typename Entry>
struct Array {
  Entry *array[32];
  Array () :
    array ( (Entry*[1]) { 0, 0 } ) // { dg-error "initializers|incompatible" }
  {}
};

Array<void*> a;