Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/constexpr-union3.C

raw
1 // { dg-do compile { target c++14 } }
2
3 union U
4 {
5 int x = (x = x + 1);
6 char y;
7 };
8
9 constexpr U u = {}; // { dg-error "accessing uninitialized member" }