From: Jan Hubicka Date: Sat, 25 Sep 2004 10:54:16 +0000 (+0200) Subject: 30040909-1.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17b2e29d7058aaa466b6562c919c8ad4e235576e;p=gcc.git 30040909-1.c: New test. * compile/30040909-1.c: New test. * compile/30040907-1.c: New test. From-SVN: r88094 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6cf8b9229d8..aa50efc10c0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-09-25 Jan Hubicka + + * compile/30040909-1.c: New test. + * compile/30040907-1.c: New test. + 2004-09-25 Richard Sandiford * 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 index 00000000000..d1dd6f22ddc --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20040907-1.c @@ -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 index 00000000000..8bbf90191b4 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20040909-1.c @@ -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); +}