Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr94303.C
blob: 45b90a2249de32a1418f843296bd66e218b1d56e [
file
] [
log
] [
blame
]
// PR middle-end/94303
// { dg-do run }
struct
A
{
int
d
=
9
;
A
()
=
default
;
A
(
int
x
)
:
d
(
x
)
{}
void
foo
()
{
if
(
d
<
1
)
__builtin_abort
();
}
};
A a
[
3
]
=
{
1
};
int
main
()
{
a
[
2
].
foo
();
}