re PR c/40172 (Revision 147596 breaks bootstrap)

2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>

	PR c/40172
	* gcc.dg/pr40172.c: Renamed to ...
	* gcc.dg/pr40172-1.c: This.

	* gcc.dg/pr40172-2.c: New.
	* gcc.dg/pr40172-3.c: Likewise.

From-SVN: r147719
This commit is contained in:
H.J. Lu 2009-05-19 21:17:00 +00:00 committed by H.J. Lu
parent 2f1c7156ef
commit dae279f018
4 changed files with 42 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
PR c/40172
* gcc.dg/pr40172.c: Renamed to ...
* gcc.dg/pr40172-1.c: This.
* gcc.dg/pr40172-2.c: New.
* gcc.dg/pr40172-3.c: Likewise.
2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/40172

View File

@ -0,0 +1,16 @@
/* PR middle-end/40172 */
/* { dg-do compile } */
/* { dg-options "-Wall -W -Werror" } */
extern int xxx;
#define XXX xxx
int
test (void)
{
if (!XXX && xxx)
return 4;
else
return 0;
}

View File

@ -0,0 +1,17 @@
/* PR middle-end/40172 */
/* { dg-do compile */
/* { dg-xfail-if "" { "*-*-*" } { "*" } { "" } } */
/* { dg-options "-Wall -W -Werror -Wlogical-op" } */
extern int xxx;
#define XXX xxx
int
test (void)
{
if (!XXX && xxx)
return 4;
else
return 0;
}