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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [macro-3.C] - Blame information for rev 315

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

Line No. Rev Author Line
1 301 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" } }
26
// { dg-final { cleanup-tree-dump "omplower" } }

powered by: WebSVN 2.1.0

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