diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/20020220-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20020220-2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/20020220-2.c b/gcc/testsuite/gcc.dg/20020220-2.c index c6c57a9213..95606703cc 100644 --- a/gcc/testsuite/gcc.dg/20020220-2.c +++ b/gcc/testsuite/gcc.dg/20020220-2.c @@ -1,5 +1,5 @@ /* PR c/4697 - Test whether value computed not used warning is given for compound + Test whether operand has no effect warning is given for compound expression. */ /* { dg-do compile } */ /* { dg-options "-O2 -Wunused" } */ @@ -7,6 +7,6 @@ int b; int foo (int a) { - a = a + 1, 5 * b; /* { dg-warning "value computed is not used" } */ + a = a + 1, 5 * b; /* { dg-warning "right-hand operand of comma expression has no effect" } */ return a; } |