OSDN Git Service

New test: compile/991127-1.c
authorcrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 Nov 1999 14:08:36 +0000 (14:08 +0000)
committercrux <crux@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 Nov 1999 14:08:36 +0000 (14:08 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30675 138bc75d-0d04-0410-961f-82ee72b054a4

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

index bbd2331..b37ebfd 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--;
+    }
+}