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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [macro-3.c] - Rev 298

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

/* PR preprocessor/27746 */
/* { dg-do compile } */
/* { dg-options "-fopenmp -fdump-tree-omplower" } */
 
#define omp		FOO
#define p		parallel
#define omp_parallel	_Pragma ("omp parallel")
#define omp_p		_Pragma ("omp p")
 
void bar (void);
 
void
foo (void)
{
  #pragma omp parallel
    bar ();
  #pragma omp p
    bar ();
  omp_parallel
    bar ();
  omp_p
    bar ();
}
 
/* { dg-final { scan-tree-dump-times "#pragma omp parallel" 4 "omplower" } } */
/* { dg-final { cleanup-tree-dump "omplower" } } */
 

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

powered by: WebSVN 2.1.0

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