New testcase
authorBernd Schmidt <bernds@cygnus.co.uk>
Fri, 8 Oct 1999 18:00:01 +0000 (18:00 +0000)
committerBernd Schmidt <crux@gcc.gnu.org>
Fri, 8 Oct 1999 18:00:01 +0000 (18:00 +0000)
From-SVN: r29871

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

index d87a61d6eec087af516f9b914f37ccbb013119d7..28cadebd7c2c6667a9d9b4e42918182ab2c1df1d 100644 (file)
@@ -1,3 +1,7 @@
+Fri Oct  8 18:46:11 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
+
+       * compile/991008-1.c: New test.
+
 1999-10-04  Ulrich Drepper  <drepper@cygnus.com>
 
        * execute/va-arg-11.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/991008-1.c b/gcc/testsuite/gcc.c-torture/compile/991008-1.c
new file mode 100644 (file)
index 0000000..ba668fe
--- /dev/null
@@ -0,0 +1,23 @@
+typedef struct {
+    int x;
+} FILE;
+extern void fputs (const char *, FILE *);
+
+int mView;
+void foo (FILE * out, int aIndent)
+{
+    if (0 != mView) {
+       aIndent++;
+       aIndent--;
+       {
+           int __t = aIndent;
+           while (--__t >= 0)
+               fputs ("  ", out);
+       }
+
+    } {
+       int __t = aIndent;
+       while (--__t >= 0)
+           fputs ("  ", out);
+    }
+}