OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [critical-4.c] - Blame information for rev 867

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 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.