diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2001-07-11 09:46:23 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2001-07-11 09:46:23 +0000 |
commit | 0e41fb04c0b06c48d000f7f41c972c7dfcd89579 (patch) | |
tree | 7bf71103c51c64b7c8b8cc5dfd5689c37e157cd5 /gcc | |
parent | bd77ba510b469f632c92c9959b2fb591a9eb7c17 (diff) | |
download | gcc-0e41fb04c0b06c48d000f7f41c972c7dfcd89579.zip gcc-0e41fb04c0b06c48d000f7f41c972c7dfcd89579.tar.gz gcc-0e41fb04c0b06c48d000f7f41c972c7dfcd89579.tar.bz2 |
* gcc.c-torture/compile/20010711-1.c,
* gcc.c-torture/compile/20010711-2.c: New tests.
From-SVN: r43934
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20010711-1.c | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20010711-2.c | 11 |
3 files changed, 27 insertions, 0 deletions
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 <rsandifo@redhat.com> + * gcc.c-torture/compile/20010711-1.c, + * gcc.c-torture/compile/20010711-2.c: New tests. + +2001-07-11 Richard Sandiford <rsandifo@redhat.com> + * gcc.c-torture/execute/20010711-1.c: New test. 2001-07-11 Ben Elliston <bje@redhat.com> 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); +} |