blob: c6c57a921363b18b2b8f325f06fe6a833623da13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* PR c/4697
Test whether value computed not used warning is given for compound
expression. */
/* { dg-do compile } */
/* { dg-options "-O2 -Wunused" } */
int b;
int foo (int a)
{
a = a + 1, 5 * b; /* { dg-warning "value computed is not used" } */
return a;
}
|