Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only %s
      2 // PR13197
      3 
      4 struct type1
      5 {
      6   constexpr type1(int a0) : my_data{a0} {}
      7   int my_data[1];
      8 };
      9 
     10 struct type2
     11 {
     12   typedef type1 T;
     13   constexpr type2(T a00, T a01, T a02, T a03, T a04, T a05, T a06, T a07, T a08, T a09,
     14                        T a10, T a11, T a12, T a13, T a14, T a15, T a16, T a17, T a18, T a19,
     15                        T a20, T a21, T a22)
     16     : my_data{a00, a01, a02, a03, a04, a05, a06, a07, a08, a09,
     17               a10, a11, a12, a13, a14, a15, a16, a17, a18, a19,
     18               a20, a21, a22}
     19   {}
     20   type1 my_data[23];
     21 };
     22 
     23 struct type3
     24 {
     25   constexpr type3(type2 a0, type2 a1) : my_data{a0, a1} {}
     26   type2 my_data[2];
     27 };
     28 
     29 constexpr type3 g
     30 {
     31   {
     32    {0},{0},{0},{0},{0},{0},{0},{0},{0},{0},
     33    {0},{0},{0},{0},{0},{0},{0},{0},{0},{0},
     34    {0},{0},{0}
     35   },
     36   {
     37    {0},{0},{0},{0},{0},{0},{0},{0},{0},{0},
     38    {0},{0},{0},{0},{0},{0},{0},{0},{0},{0},
     39    {0},{0},{0}
     40   }
     41 };
     42 
     43