mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 12:29:25 +08:00
* gcc.c-torture/execute/20000225-1.c: New test.
From-SVN: r32165
This commit is contained in:
parent
3c9ef12753
commit
985dae7cdd
@ -1,3 +1,7 @@
|
||||
Fri Feb 25 21:44:49 2000 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.c-torture/execute/20000225-1.c: New test.
|
||||
|
||||
2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
|
||||
|
||||
* gcc.dg/cpp-li2.c: New test.
|
||||
|
21
gcc/testsuite/gcc.c-torture/execute/20000225-1.c
Normal file
21
gcc/testsuite/gcc.c-torture/execute/20000225-1.c
Normal file
@ -0,0 +1,21 @@
|
||||
int main ()
|
||||
{
|
||||
int nResult;
|
||||
int b=0;
|
||||
int i = -1;
|
||||
|
||||
do
|
||||
{
|
||||
if (b!=0) {
|
||||
abort ();
|
||||
nResult=1;
|
||||
} else {
|
||||
nResult=0;
|
||||
}
|
||||
i++;
|
||||
b=(i+2)*4;
|
||||
} while (i < 0);
|
||||
exit (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user