Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr80129.C
blob: 134293cd08554a27bc700584849ba7681b1f964e [
file
] [
log
] [
blame
]
// PR c++/80129
// { dg-do run }
// { dg-options "-std=c++11" }
struct
A
{
bool
a
;
int
b
;
};
int
main
()
{
bool
c
=
false
;
const
A x
=
c
?
A
{
true
,
1
}
:
A
{
false
,
0
};
if
(
x
.
a
)
__builtin_abort
();
}