Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
();
}