1 // Testcase for mangling of expressions involving operator names.
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fabi-version=10" }
4 // { dg-final { scan-assembler "_Z1fI1AEDTclonplfp_fp_EET_" } }
5 // { dg-final { scan-assembler "_Z1gI1AEDTclonplIT_Efp_fp_EES1_" } }
6 // { dg-final { scan-assembler "_Z1hI1AEDTcldtfp_miEET_" } }
7 // { dg-final { scan-assembler "_Z1iI1AEDTcldtfp_srT_miEES1_" } }
8 // { dg-final { scan-assembler "_Z1jI1AEDTcldtfp_cvPT_EES1_" } }
19 auto f (T t) -> decltype(operator+(t,t));
21 auto g (T t) -> decltype(operator+<T>(t,t));
23 auto h (T t) -> decltype(t.operator-());
25 auto i (T t) -> decltype(t.T::operator-());
27 auto j (T t) -> decltype(t.operator T*());