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/] [macro-3.c] - Blame information for rev 856

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR preprocessor/27746 */
2
/* { dg-do compile } */
3
/* { dg-options "-fopenmp -fdump-tree-omplower" } */
4
 
5
#define omp             FOO
6
#define p               parallel
7
#define omp_parallel    _Pragma ("omp parallel")
8
#define omp_p           _Pragma ("omp p")
9
 
10
void bar (void);
11
 
12
void
13
foo (void)
14
{
15
  #pragma omp parallel
16
    bar ();
17
  #pragma omp p
18
    bar ();
19
  omp_parallel
20
    bar ();
21
  omp_p
22
    bar ();
23
}
24
 
25
/* { dg-final { scan-tree-dump-times "#pragma omp parallel" 4 "omplower" } } */

powered by: WebSVN 2.1.0

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