diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ec762fdb0bc..2186c299fd5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-02-05 Alan Modra + + * gcc.c-torture/execute/20000205-1.c: New. + 2000-02-03 Nathan Sidwell * g++.old-deja/g++.jason/cast3.C: Return void. diff --git a/gcc/testsuite/gcc.c-torture/execute/20000205-1.c b/gcc/testsuite/gcc.c-torture/execute/20000205-1.c new file mode 100644 index 00000000000..b605b84b6b1 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20000205-1.c @@ -0,0 +1,17 @@ +static int f (int a) +{ + if (a == 0) + return 0; + do + if (a & 128) + return 1; + while (f (0)); + return 0; +} + +int main(void) +{ + if (f (~128)) + abort (); + exit (0); +}