Debian Codegraph @

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

raw
1 // PR c++/94470
2 // { dg-do compile { target c++14 } }
3
4 struct X
5 {
6 int b = (c=5);
7 int c = (b=1);
8 };
9
10 constexpr X o = { };
11 static_assert(o.b == 1 && o.c == 1, "");