From 33b35a8dc4ce2a6edb323140e49b55cbc3b22f8c Mon Sep 17 00:00:00 2001 From: Catherine Moore Date: Thu, 7 Sep 2000 13:12:24 +0000 Subject: [PATCH] * gcc.c-torture/execute/unroll-1.c: New test. From-SVN: r36236 --- gcc/testsuite/ChangeLog | 4 ++++ .../gcc.c-torture/execute/unroll-1.c | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/unroll-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 17f824afca6..2758c17b859 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-09-07 Catherine Moore + + * gcc.c-torture/execute/unroll-1.c: New test. + 2000-09-06 Zack Weinberg * g++.old-deja/g++.benjamin/13478.C: Put meaningful tags on diff --git a/gcc/testsuite/gcc.c-torture/execute/unroll-1.c b/gcc/testsuite/gcc.c-torture/execute/unroll-1.c new file mode 100644 index 00000000000..8812955652f --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/unroll-1.c @@ -0,0 +1,19 @@ +inline int +f (int x) +{ + return (x + 1); +} + +int +main (void) +{ + int a = 0 ; + + while ( (f(f(f(f(f(f(f(f(f(f(1))))))))))) + a < 12 ) + { + a++; + exit (0); + } + if (a != 1) + abort(); +}