diff options
author | Jan Hubicka <jh@suse.cz> | 2005-10-30 19:14:15 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-10-30 18:14:15 +0000 |
commit | 5e13fdf7526539b77f38ed6aa14f993d542c4b9d (patch) | |
tree | 547504d63ebc99e12b881ae303cb2482daa00135 /gcc/testsuite/g++.dg | |
parent | 25d8f0a2839a99417ab79879fb55f2ead76fcf2a (diff) | |
download | gcc-5e13fdf7526539b77f38ed6aa14f993d542c4b9d.zip gcc-5e13fdf7526539b77f38ed6aa14f993d542c4b9d.tar.gz gcc-5e13fdf7526539b77f38ed6aa14f993d542c4b9d.tar.bz2 |
re PR tree-optimization/24172 (error: incorrect sharing of tree nodes)
PR tree-optimization/24172
* tree-inline.c (copy_body_r): Unshare the substituted value first.
* g++.dg/tree-ssa/pr24172.C: New testcase.
From-SVN: r106247
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r-- | gcc/testsuite/g++.dg/tree-ssa/pr24172.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr24172.C b/gcc/testsuite/g++.dg/tree-ssa/pr24172.C new file mode 100644 index 0000000..245186a --- /dev/null +++ b/gcc/testsuite/g++.dg/tree-ssa/pr24172.C @@ -0,0 +1,11 @@ +// { dg-options "-O2" } +void IOException( char); +inline int* dummy( const char* const mode ) +{ + IOException(*mode+*mode); +} + +void prepare_inpaint( ) +{ + dummy ("rb"); +} |