repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2008-07-28 Richard Guenther <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
gomp
/
critical-4.c
blob
530e7c976fcdc548ccdfb6bb742590a6c04c898f
1
/* { dg-do compile } */
2
3
extern
void
bar
(
int
);
4
5
void
6
foo1
(
void
)
7
{
8
#pragma omp critical
9
#pragma omp critical(foo)
10
#pragma omp critical(bar)
11
bar
(
0
);
12
}
13
14
void
15
foo2
(
void
)
16
{
17
#pragma omp critical
18
#pragma omp critical
/* { dg-warning "with the same name" } */
19
bar
(
0
);
20
}
21
22
void
23
foo3
(
void
)
24
{
25
#pragma omp critical(foo)
26
#pragma omp critical(foo)
/* { dg-warning "with the same name" } */
27
bar
(
0
);
28
}