Debian Codegraph @

gcc/testsuite/c-c++-common/gomp/error-2.c

raw
1 void
2 foo (int x, const char *msg1, const char *msg2)
3 {
4 if (x == 0)
5 {
6 #pragma omp error at(execution)
7 }
8 else if (x == 1)
9 {
10 #pragma omp error severity (warning), at (execution)
11 }
12 else if (x == 2)
13 {
14 #pragma omp error at ( execution ) severity (fatal) message ("baz")
15 }
16 else if (x == 3)
17 {
18 #pragma omp error severity(warning) message (msg1) at(execution)
19 }
20 else
21 {
22 #pragma omp error message (msg2), at(execution), severity(fatal)
23 }
24 }