From 985dae7cdd18b543af8396c61c5332d685e47745 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Sat, 26 Feb 2000 04:46:00 +0000 Subject: [PATCH] * gcc.c-torture/execute/20000225-1.c: New test. From-SVN: r32165 --- gcc/testsuite/ChangeLog | 4 ++++ .../gcc.c-torture/execute/20000225-1.c | 21 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/20000225-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dee6f312324..f8aff2b92e8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 * gcc.dg/cpp-li2.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/20000225-1.c b/gcc/testsuite/gcc.c-torture/execute/20000225-1.c new file mode 100644 index 00000000000..6c409bcf776 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20000225-1.c @@ -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); +} + +