From 0e41fb04c0b06c48d000f7f41c972c7dfcd89579 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 11 Jul 2001 09:46:23 +0000 Subject: [PATCH] * 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 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); +} -- 2.30.2