OSDN Git Service

* gcc.c-torture/execute/pr17252.c: Use post-increment to
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 2004 12:22:19 +0000 (12:22 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 2004 12:22:19 +0000 (12:22 +0000)
change what 'a' is pointing to.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87642 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr17252.c

index d037308..eb89d6b 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-17  Diego Novillo  <dnovillo@redhat.com>
+
+       * gcc.c-torture/execute/pr17252.c: Use post-increment to
+       change what 'a' is pointing to.
+
 2004-09-17  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/16002
index ebc3c86..bd1b6b9 100644 (file)
@@ -9,7 +9,7 @@ main ()
   a = (char *)&a;
 
   /* Change what 'a' is pointing to.  */
-  a[0] = 0;
+  a[0]++;
 
   /* If a's memory tag does not contain 'a' in its alias set, we will
      think that this predicate is superfluous and change it to