* gcc.c-torture/compile/20010711-1.c,
authorRichard Sandiford <rsandifo@redhat.com>
Wed, 11 Jul 2001 09:46:23 +0000 (09:46 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 11 Jul 2001 09:46:23 +0000 (09:46 +0000)
* gcc.c-torture/compile/20010711-2.c: New tests.

From-SVN: r43934

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20010711-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/20010711-2.c [new file with mode: 0644]

index aa516e210f5bd7eb5efa390c1bf23fd87fc4c5c2..4a854af53a7aac17ef233b6c39d563705a21f79a 100644 (file)
@@ -1,3 +1,8 @@
+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.
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 (file)
index 0000000..a078742
--- /dev/null
@@ -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 (file)
index 0000000..2f8d68b
--- /dev/null
@@ -0,0 +1,11 @@
+typedef unsigned long long value;
+
+void foo (value *v) {}
+
+void test ()
+{
+  value v;
+  foo (&v);
+  if (v-- == 1)
+    foo (&v);
+}