PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr30965.C
blob4adca8b2f6228379f0c15f7f5c5a7381f94e6cd5
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fno-ipa-icf -fdump-tree-optimized" } */
4 #include <tr1/functional>
5 #include <algorithm>
7 extern void assign( long* variable, long v )
9         std::transform( variable, variable + 1, variable,
10                 std::tr1::bind( std::plus< long >(), 0L, v ) );
12 extern void assign( long& variable, long v )
14         std::transform( &variable, &variable + 1, &variable,
15                 std::tr1::bind( std::plus< long >(), 0L, v ) );
18 /* { dg-final { scan-tree-dump-times ";; Function" 2 "optimized" } } */
19 /* { dg-final { scan-tree-dump-times "variable_..D. = v_..D." 2 "optimized" } } */