From 0e41fb04c0b06c48d000f7f41c972c7dfcd89579 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 11 Jul 2001 09:46:23 +0000 Subject: * gcc.c-torture/compile/20010711-1.c, * gcc.c-torture/compile/20010711-2.c: New tests. From-SVN: r43934 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/compile/20010711-1.c | 11 +++++++++++ gcc/testsuite/gcc.c-torture/compile/20010711-2.c | 11 +++++++++++ 3 files changed, 27 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/20010711-1.c create mode 100644 gcc/testsuite/gcc.c-torture/compile/20010711-2.c (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aa516e2..4a854af 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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. 2001-07-11 Ben Elliston 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 0000000..a078742 --- /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 0000000..2f8d68b --- /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); +} -- cgit v1.1