Debian Codegraph @

gcc/testsuite/c-c++-common/spellcheck-missing-option.c

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