]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/initlist109.C
Daily bump.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist109.C
CommitLineData
b27f74e7
MP
1// PR c++/80864
2// { dg-do compile { target c++11 } }
3// { dg-options "-Wmissing-braces" }
4
5struct S {};
6struct A { S s[1]; };
7
8template <typename>
9struct R { static constexpr auto h = A{S{}}; }; // { dg-warning "missing braces" }
10
11template <typename>
12struct R2 { static constexpr auto h = A{{S{}}}; };
13
14A foo = R<int>::h;
15A foo2 = R2<int>::h;