diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-23 12:41:59 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-23 12:41:59 +0000 |
commit | 31cc0495780480a177f6c7023e67e196651af7d0 (patch) | |
tree | f51a944f1f4c7323ab14cf8768148738a04f8c37 /gcc/testsuite | |
parent | 3a950715b55e140de3adf4a0d797b69505c0fabc (diff) | |
download | gcc-31cc0495780480a177f6c7023e67e196651af7d0.tar.gz |
2007-08-23 Richard Guenther <rguenther@suse.de>
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
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr32328.c | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ef446717706..9b17200f3ae 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/testsuite/gcc.dg/pr32328.c b/gcc/testsuite/gcc.dg/pr32328.c new file mode 100644 index 00000000000..69b08fc4fdf --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr32328.c @@ -0,0 +1,17 @@ +/* { 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" } } */ |