Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/opt/pr30965.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O3 -fno-ipa-icf -fdump-tree-optimized" } */ #include <tr1/functional> #include <algorithm> extern void assign( long* variable, long v ) { std::transform( variable, variable + 1, variable, std::tr1::bind( std::plus< long >(), 0L, v ) ); } extern void assign( long& variable, long v ) { std::transform( &variable, &variable + 1, &variable, std::tr1::bind( std::plus< long >(), 0L, v ) ); } /* { dg-final { scan-tree-dump-times ";; Function" 2 "optimized" } } */ /* { dg-final { scan-tree-dump-times "variable_..D. = v_..D." 2 "optimized" } } */