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.2.2/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [macro-4.C] - Rev 154

Compare with Previous | Blame | View Log

// PR preprocessor/27746
// { dg-do compile }
// { dg-options "-fopenmp -Wunknown-pragmas" }

#define p               _Pragma ("omp parallel")
#define omp_p           _Pragma ("omp p")

void bar (void);

void
foo (void)
{
#pragma omp p           // { dg-warning "ignoring #pragma omp _Pragma" }
    bar ();
  omp_p                 // { dg-warning "ignoring #pragma omp _Pragma" }
    bar ();
}

#define parallel        serial
#define omp_parallel    _Pragma ("omp parallel")

void
baz (void)
{
#pragma omp parallel    // { dg-warning "ignoring #pragma omp serial" }
    bar ();
  omp_parallel          // { dg-warning "ignoring #pragma omp serial" }
    bar ();
}

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.