Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/Wunused-value-3.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* PR c/39889 */ /* { dg-do compile } */ /* { dg-options "-Wunused-value" } */ int x; int foo (void) { return (1 ? x = 0 : (void) 0), 0; /* { dg-bogus "value computed is not used" } */ }