c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-83921-3.C
blob2f1218693e02e59996afef3105f690d7123f7cc4
1 // PR c++/83921
2 // { dg-do compile { target c++14 } }
4 struct Foo { int m; };
5 constexpr void test() { Foo f; }  // { dg-error "uninitialized" "" { target c++17_down } }