re PR middle-end/26632 (spurious warning: value computed is not used)

PR middle-end/26632
	* gcc.dg/pr26632.c: New.

From-SVN: r116580
This commit is contained in:
Kazu Hirata 2006-08-30 06:00:35 +00:00
parent 8c086c9c6e
commit b0d3a6aeb8
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
/* PR middle-end/26632
We used to issue a warning for an implicit cast whose result is not
used. */
/* { dg-do compile } */
/* { dg-options "-Wall" } */
int g (void);
long h (void);
void
f (void)
{
0 ? h () : g (); /* { dg-bogus "value computed is not used" } */
}