aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-63241.C
blob: 2553cae349c18fb7de418978442fffa07abc072f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/63241
// { dg-do compile { target c++11 } }

struct A {
  constexpr A(int){}
};

int main() {
  int i = 1;
  A array[2][2] =
    {{{0}, {i}},
     {{0}, {0}}};
}