diff --git a/gcc/testsuite/gcc.c-torture/ChangeLog b/gcc/testsuite/gcc.c-torture/ChangeLog index bbd2331259e..b37ebfd07eb 100644 --- a/gcc/testsuite/gcc.c-torture/ChangeLog +++ b/gcc/testsuite/gcc.c-torture/ChangeLog @@ -1,3 +1,7 @@ +1999-11-27 Bernd Schmidt + + * compile/991127-1.c: New test. + Wed Oct 20 16:18:23 1999 Jim Wilson * noncompile/noncompile.exp: For 940510-1.c, change compiler_output diff --git a/gcc/testsuite/gcc.c-torture/compile/991127-1.c b/gcc/testsuite/gcc.c-torture/compile/991127-1.c new file mode 100644 index 00000000000..86098d883a5 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/991127-1.c @@ -0,0 +1,12 @@ + +extern void foo (int *); + +static void bar (char *buf) +{ + int a; + foo (&a); + while (a > 0) { + *buf++ = '0'; + a--; + } +}