30040909-1.c: New test.
authorJan Hubicka <jh@suse.cz>
Sat, 25 Sep 2004 10:54:16 +0000 (12:54 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 25 Sep 2004 10:54:16 +0000 (10:54 +0000)
* compile/30040909-1.c: New test.
* compile/30040907-1.c: New test.

From-SVN: r88094

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

index 6cf8b92..aa50efc 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-25  Jan Hubicka  <jh@suse.cz>
+
+       * compile/30040909-1.c: New test.
+       * compile/30040907-1.c: New test.
+
 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
 
        * gcc.c-torture/execute/va-arg-26.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20040907-1.c b/gcc/testsuite/gcc.c-torture/compile/20040907-1.c
new file mode 100644 (file)
index 0000000..d1dd6f2
--- /dev/null
@@ -0,0 +1,13 @@
+void ProdWord_bla ( gtL, gtRes, lnL )
+    int *gtL, *gtRes;
+    int lnL;
+{
+    while ( 1 < lnL )
+    {
+        *gtRes++ = *gtL++;
+        --lnL;
+    }
+    if ( 0 < lnL )
+        if ( gtL[0] == gtL[1] )
+            *gtRes++ = 0;
+}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20040909-1.c b/gcc/testsuite/gcc.c-torture/compile/20040909-1.c
new file mode 100644 (file)
index 0000000..8bbf901
--- /dev/null
@@ -0,0 +1,13 @@
+static __inline__ int
+one_utf8_to_utf16 () { }
+
+static __inline__ unsigned char
+conversion_loop (int (*const one_conversion)())
+{
+return one_conversion ();
+}
+static unsigned char
+convert_utf8_utf16 ()
+{
+  return conversion_loop (one_utf8_to_utf16);
+}