mirror of
https://github.com/autc04/Retro68.git
synced 2024-08-19 03:29:10 +00:00
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
|
// PR middle-end/39573
|
||
|
// { dg-do run }
|
||
|
|
||
|
int z;
|
||
|
|
||
|
void __attribute__((noinline))
|
||
|
bar (int *x)
|
||
|
{
|
||
|
#pragma omp atomic
|
||
|
z += x[2];
|
||
|
x[2] += x[3];
|
||
|
}
|
||
|
|
||
|
int
|
||
|
main ()
|
||
|
{
|
||
|
int i;
|
||
|
#pragma omp parallel for
|
||
|
for (i = 0; i < 65536; i++)
|
||
|
{
|
||
|
int x[] =
|
||
|
{
|
||
|
0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1,
|
||
|
0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1,
|
||
|
0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1,
|
||
|
0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1,
|
||
|
0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1,
|
||
|
0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1,
|
||
|
0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1,
|
||
|
0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1,
|
||
|
0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 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