From: Richard Sandiford Date: Wed, 11 Jul 2001 09:46:23 +0000 (+0000) Subject: * gcc.c-torture/compile/20010711-1.c, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e41fb04c0b06c48d000f7f41c972c7dfcd89579;p=gcc.git * gcc.c-torture/compile/20010711-1.c, * gcc.c-torture/compile/20010711-2.c: New tests. From-SVN: r43934 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aa516e210f5..4a854af53a7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-07-11 Richard Sandiford + + * gcc.c-torture/compile/20010711-1.c, + * gcc.c-torture/compile/20010711-2.c: New tests. + 2001-07-11 Richard Sandiford * gcc.c-torture/execute/20010711-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/20010711-1.c b/gcc/testsuite/gcc.c-torture/compile/20010711-1.c new file mode 100644 index 00000000000..a0787421f94 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20010711-1.c @@ -0,0 +1,11 @@ +typedef unsigned long long value; + +void foo (value *v) {} + +void test () +{ + value v; + foo (&v); + if (v-- > 0) + foo (&v); +} diff --git a/gcc/testsuite/gcc.c-torture/compile/20010711-2.c b/gcc/testsuite/gcc.c-torture/compile/20010711-2.c new file mode 100644 index 00000000000..2f8d68ba4ae --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20010711-2.c @@ -0,0 +1,11 @@ +typedef unsigned long long value; + +void foo (value *v) {} + +void test () +{ + value v; + foo (&v); + if (v-- == 1) + foo (&v); +}