Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr94949.c
blob: 6182d77b3cdaca4a62f7f457f2413bce3f9ced3e [
file
] [
log
] [
blame
]
/* { dg-do run } */
/* { dg-additional-options "-fallow-store-data-races" } */
static
int
x
=
1
;
static
volatile
int
y
=
-
1
;
int
main
()
{
for
(
int
i
=
0
;
i
<
128
;
++
i
)
{
if
(
i
==
y
)
x
=
i
;
}
if
(
x
!=
1
)
__builtin_abort
();
return
0
;
}