2 /* { dg-do compile } */
3 /* { dg-options "-Wunused-value" } */
9 foo (double _Complex x
)
11 ++x
; /* { dg-bogus "value computed is not used" } */
12 --x
; /* { dg-bogus "value computed is not used" } */
13 x
+= 1; /* { dg-bogus "value computed is not used" } */
14 x
+= 1.0iF
; /* { dg-bogus "value computed is not used" } */
15 x
++; /* { dg-bogus "value computed is not used" } */
16 x
--; /* { dg-bogus "value computed is not used" } */
17 x
+ 1; /* { dg-warning "value computed is not used" } */
18 (void) (x
+ 1); /* { dg-bogus "value computed is not used" } */
19 1 + f (); /* { dg-warning "value computed is not used" } */
20 f () + f (); /* { dg-warning "value computed is not used" } */
21 f () + f (), f (); /* { dg-warning "value computed is not used" } */
24 *p
++; /* { dg-warning "value computed is not used" } */
25 ++*p
; /* { dg-bogus "value computed is not used" } */
30 ({ f () + 1; 0; }); /* { dg-warning "value computed is not used" } */
31 1 + ({ f (); }); /* { dg-warning "value computed is not used" } */