OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [critical-4.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.