Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr26632.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR middle-end/26632 |
2 We used to issue a warning for an implicit cast whose result is not | |
3 used. */ | |
4 /* { dg-do compile } */ | |
5 /* { dg-options "-Wall" } */ | |
6 | |
7 int g (void); | |
8 long h (void); | |
9 | |
10 void | |
11 f (void) | |
12 { | |
13 0 ? h () : g (); /* { dg-bogus "value computed is not used" } */ | |
14 } |