Commit b0d3a6ae by Kazu Hirata

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

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

From-SVN: r116580
parent 8c086c9c
/* 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" } */
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment