PR tree-optimization/32328
* testsuite/gcc.dg/pr32328.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127736
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-08-23 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/32328
+ * testsuite/gcc.dg/pr32328.c: New testcase.
+
2007-08-23 Rask Ingemann Lambertsen <rask@sygehus.dk>
* gcc.c-torture/execute/simd-4.x: Only run when stdint.h types are
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-optimized" } */
+
+struct barstruct { char const* some_string; };
+
+void changethepointer(struct barstruct**);
+
+void baz()
+{
+ struct barstruct bar1;
+ struct barstruct* barptr = &bar1;
+ changethepointer(&barptr);
+ barptr->some_string = "Everything OK";
+}
+
+/* { dg-final { scan-tree-dump "Everything OK" "optimized" } } */
+/* { dg-final { cleanup-tree-dump "optimized" } } */