Sign in
gnu
/
gcc
/
refs/heads/devel/icpp2021
/
.
/
gcc
/
testsuite
/
gcc.dg
/
pr47086.c
blob: 473e802bc1f7a3bcfc60a0bdc52d4945a2f37c1f [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O -fexceptions -fnon-call-exceptions -ftrapv" } */
/* { dg-require-effective-target exceptions } */
void
foo
()
{
int
n
=
0
;
while
(
1
)
{
int
i
[
n
%
1
];
n
++;
}
}