Debian Codegraph @

gcc/testsuite/gcc.dg/gomp/pr89796.c

raw
1 /* PR c++/89796 */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-Wunused-value" } */
4
5 int
6 f1 (int *p)
7 {
8 int r;
9 #pragma omp atomic capture /* { dg-bogus "value computed is not used" } */
10 { r = *p; (*p)++; }
11 return r;
12 }
13
14 int
15 f2 (int *p)
16 {
17 int s
18 = ({ int r;
19 #pragma omp atomic capture /* { dg-bogus "value computed is not used" } */
20 { r = *p; (*p)++; }
21 r; });
22 return s;
23 }