c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-union3.C
blob5cf62e46cb5517ec7a2d08d878cc0a435401949e
1 // { dg-do compile { target c++14 } }
3 union U
5   int x = (x = x + 1);
6   char y;
7 };
9 constexpr U u = {}; // { dg-error "accessing uninitialized member" }