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