Commit b5ecf629 by Donald Lindsay Committed by Don Lindsay

*** empty log message ***

From-SVN: r37598
parent e6afac94
2000-11-20 Donald Lindsay <dlindsay@redhat.com>
* gcc.dg/20000614-2.c: Bug fix. This test expected an unitialized
local variable to be zero: I made the variable global. Now
uses abort() and exit() instead of relying on main's return value.
2000-11-20 Neil Booth <neilb@earthling.net>
* gcc.dg/cpp/paste2.c: Update test.
......
/* { dg-do run { target i?86-*-* } } */
/* { dg-options "-O2 -fno-strength-reduce" } */
extern void abort (void);
extern void exit (int);
char buf[8];
void bar(char *p)
{
}
......@@ -11,9 +16,8 @@ int main()
unsigned int val;
unsigned char p[4];
} serial;
char buf[8];
int i;
int i;
serial.val = 0;
bar(buf);
for(i = 0; i < 8; i += 4)
......@@ -23,5 +27,7 @@ int main()
serial.p [2] += buf [i + 2];
serial.p [3] += buf [i + 3];
}
return serial.val;
if (serial.val)
abort();
exit(0);
}
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