]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Mon, 7 Oct 2002 07:39:20 +0000 (07:39 +0000)
committerNo Author <no-author@gcc.gnu.org>
Mon, 7 Oct 2002 07:39:20 +0000 (07:39 +0000)
'gcc-3_2-branch'.

From-SVN: r57883

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

diff --git a/gcc/testsuite/gcc.c-torture/compile/20021007-1.c b/gcc/testsuite/gcc.c-torture/compile/20021007-1.c
new file mode 100644 (file)
index 0000000..de4c0de
--- /dev/null
@@ -0,0 +1,11 @@
+/* PR c/7411 */
+/* Verify that GCC simplifies the null addition to i before
+   virtual register substitution tries it and winds up with
+   a memory to memory move.  */
+                        
+void foo ()     
+{
+   int i = 0,j;
+   i+=j=0;
+}