Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr80129.C

raw
1 // PR c++/80129
2 // { dg-do run }
3 // { dg-options "-std=c++11" }
4
5 struct A { bool a; int b; };
6
7 int
8 main ()
9 {
10 bool c = false;
11 const A x = c ? A {true, 1} : A {false, 0};
12 if (x.a)
13 __builtin_abort ();
14 }