2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fabi-version=0 -Wabi=2" }
5 template < typename T >
7 f1( T x ) // { dg-warning "mangle" }
8 -> typename decltype( x )::type {}
10 template < typename T >
11 typename decltype( T() )::type
12 f2( T x ) {} // ICE on here
14 struct S { typedef void type; };
22 // { dg-final { scan-assembler "\n_?_Z2f1I1SENDtfp_E4typeET_\[: \t\n\]" } }
23 // { dg-final { scan-assembler "\n_?_Z2f2I1SENDTcvT__EE4typeES1_\[: \t\n\]" } }