New test: compile/991127-1.c
authorBernd Schmidt <bernds@cygnus.co.uk>
Sat, 27 Nov 1999 14:08:36 +0000 (14:08 +0000)
committerBernd Schmidt <crux@gcc.gnu.org>
Sat, 27 Nov 1999 14:08:36 +0000 (14:08 +0000)
From-SVN: r30675

gcc/testsuite/gcc.c-torture/ChangeLog
gcc/testsuite/gcc.c-torture/compile/991127-1.c [new file with mode: 0644]

index bbd2331259eeb0c131879ee61027dbcb6aa62005..b37ebfd07ebb5d1fc37dac4c0e77eef834060450 100644 (file)
@@ -1,3 +1,7 @@
+1999-11-27  Bernd Schmidt  <bernds@cygnus.co.uk>
+
+       * compile/991127-1.c: New test.
+
 Wed Oct 20 16:18:23 1999  Jim Wilson  <wilson@cygnus.com>
 
        * 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 (file)
index 0000000..86098d8
--- /dev/null
@@ -0,0 +1,12 @@
+
+extern void foo (int *);
+
+static void bar (char *buf)
+{
+    int a;
+    foo (&a);
+    while (a > 0) {
+       *buf++ = '0';
+       a--;
+    }
+}