1 // More auto/decltype mangling tests.
2 // { dg-options "-std=c++0x -fabi-version=0" }
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)
38 template <class... Args>
41 template <class... Args>
42 auto g (Args... args) -> decltype (f ((args+1)...))
44 return (f ((args+1)...));
49 // { dg-final { scan-assembler "_ZN1AIiE1fIiEEDTplfp_L_ZNS0_1iEEET_" } }
51 // { dg-final { scan-assembler "_ZN1AIiE2frIiEEDTplfp_L_ZNS0_2irEEET_" } }
53 // { dg-final { scan-assembler "_ZN1AIiE3frrIiEEDTplfp_L_ZNS0_3irrEEET_" } }
55 // { dg-final { scan-assembler "_ZN1AIiE1gIiEEDTplfp_szL_ZNS0_1iEEET_" } }
57 // { dg-final { scan-assembler "_ZN1AIiE1hIiEEDTplfp_sr1BIT_E1iES3_" } }
59 // { dg-final { scan-assembler "_ZN1AIiE1jIiEEDTplfp_clL_Z1xvEEET_" } }
61 // { dg-final { scan-assembler "_Z1gIJidEEDTcl1fspplfp_Li1EEEDpT_" } }