1 // More auto/decltype mangling tests.
2 // { dg-options "-std=c++0x" }
19 auto f(U u) -> decltype (u + i);
21 auto fr(U u) -> decltype (u + ir);
23 auto frr(U u) -> decltype (u + irr);
25 auto g(U u) -> decltype (u + sizeof (i));
27 auto h(U u) -> decltype (u + B<U>::i);
29 auto j(U u) -> decltype (u + x());
32 template<class T> template<class U>
33 auto A<T>::f(U u) -> decltype (u + i)
40 // { dg-final { scan-assembler "_ZN1AIiE1fIiEEDTplfp_L_ZNS0_1iEEET_" } }
42 // { dg-final { scan-assembler "_ZN1AIiE2frIiEEDTplfp_L_ZNS0_2irEEET_" } }
44 // { dg-final { scan-assembler "_ZN1AIiE3frrIiEEDTplfp_L_ZNS0_3irrEEET_" } }
46 // { dg-final { scan-assembler "_ZN1AIiE1gIiEEDTplfp_szL_ZNS0_1iEEET_" } }
48 // { dg-final { scan-assembler "_ZN1AIiE1hIiEEDTplfp_sr1BIT_E1iES3_" } }
50 // { dg-final { scan-assembler "_ZN1AIiE1jIiEEDTplfp_clL_Z1xvEEET_" } }