OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c/35738
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
gomp
/
flush-1.c
1
/* { dg-do compile } */
2
/* { dg-options "-fopenmp -fdump-tree-gimple" } */
3
4
void f1(void)
5
{
6
#pragma omp flush
7
}
8
9
int x, y, z;
10
11
void f2(_Bool p)
12
{
13
if (p)
14
{
15
#pragma omp flush (x)
16
}
17
else
18
{
19
#pragma omp flush (x, y, z)
20
}
21
}
22
23
/* { dg-final { scan-tree-dump-times "__sync_synchronize" 3 "gimple" } } */
24
/* { dg-final { cleanup-tree-dump "gimple" } } */