* gcc.dg/ifelse-1.c: New test.

From-SVN: r17885
This commit is contained in:
Jeffrey A Law 1998-02-12 23:34:52 +00:00 committed by Jeff Law
parent 567f3d3603
commit 2aca5b9b2d
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,6 @@
Fri Feb 13 00:36:07 1998 Jeffrey A Law (law@cygnus.com)
* gcc.dg/ifelse-1.c: New test.
Mon Feb 9 02:08:47 1998 H.J. Lu (hjl@gnu.org)

View File

@ -0,0 +1,21 @@
/*
{ dg-do compile }
{ dg-options "-W -Wall" }
*/
extern int bar ();
extern int com ();
extern int baz ();
void
foo (a,b)
int a, b;
{
if (a)
if (b)
bar ();
else
com (); /* { dg-bogus ".*warning.*" "bogus warning" { xfail *-*-* } } */
else
baz ();
}