990208-1.c (main): Don't pass constants through to doit's conditional.
* gcc.c-torture/execute/990208-1.c (main): Don't pass constants through to doit's conditional. From-SVN: r33878
This commit is contained in:
parent
a92fa60873
commit
67384dfba3
@ -1,3 +1,8 @@
|
||||
2000-05-12 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* gcc.c-torture/execute/990208-1.c (main): Don't pass
|
||||
constants through to doit's conditional.
|
||||
|
||||
Thu May 11 19:02:43 2000 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.c-torture/compile/20000511-1.c: New test.
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
#ifndef NO_LABEL_VALUES
|
||||
static void *ptr1, *ptr2;
|
||||
static int i = 1;
|
||||
|
||||
static __inline__ void doit(void **pptr, int cond)
|
||||
{
|
||||
@ -27,9 +28,9 @@ static void bar(void);
|
||||
|
||||
int main()
|
||||
{
|
||||
f (1);
|
||||
f (i);
|
||||
bar();
|
||||
g (1);
|
||||
g (i);
|
||||
|
||||
#ifdef __OPTIMIZE__
|
||||
if (ptr1 == ptr2)
|
||||
|
Loading…
Reference in New Issue
Block a user