2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr80129.C
blob134293cd08554a27bc700584849ba7681b1f964e
1 // PR c++/80129
2 // { dg-do run }
3 // { dg-options "-std=c++11" }
5 struct A { bool a; int b; };
7 int
8 main ()
10   bool c = false;
11   const A x = c ? A {true, 1} : A {false, 0};
12   if (x.a)
13     __builtin_abort ();