diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/loop-11.c | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3c7927f..cbfe8c4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-01-10 Dale Johannesen <dalej@apple.com> + + * gcc.c-torture/execute/loop-11.c: New. + 2002-01-08 Aldy Hernandez <aldyh@redhat.com> * gcc.dg/altivec-4.c: Add test for mtvscr, dssall, mfvscr, diff --git a/gcc/testsuite/gcc.c-torture/execute/loop-11.c b/gcc/testsuite/gcc.c-torture/execute/loop-11.c new file mode 100644 index 0000000..ab240ce --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/loop-11.c @@ -0,0 +1,20 @@ +static int a[199]; + +static void +foo () +{ + int i; + for (i = 198; i >= 0; i--) + a[i] = i; +} + +int +main () +{ + int i; + foo (); + for (i = 0; i < 199; i++) + if (a[i] != i) + abort (); + return 0; +} |