blob: d7dbb2e4a7b9359449d45b77112543530220ebe6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
void
test_fopenacc ()
{
__builtin_printf ("_OPENACC = %d\n", _OPENACC); /* { dg-error "'_OPENACC' undeclared" "" { target c } } */
/* { dg-error "'_OPENACC' was not declared in this scope" "" { target c++ } .-1 } */
/* { dg-message "'_OPENACC' is defined when using option '-fopenacc'" "" { target *-*-* } .-2 } */
}
void
test_fopenmp ()
{
__builtin_printf ("_OPENMP = %d\n", _OPENMP); /* { dg-error "'_OPENMP' undeclared" "" { target c } } */
/* { dg-error "'_OPENMP' was not declared in this scope" "" { target c++ } .-1 } */
/* { dg-message "'_OPENMP' is defined when using option '-fopenmp'" "" { target *-*-* } .-2 } */
}
|