gcc/testsuite/g++.dg/cpp0x/decltype83a.C
raw| 1 | // PR c++/109790 |
| 2 | // Up to GCC 10, the mangling would be missing the "on" marker, hence be wrong. |
| 3 | // Check that this is fixed with the latest ABI. |
| 4 | |
| 5 | // { dg-do compile { target c++11 } } |
| 6 | |
| 7 | struct A { |
| 8 | template<class T> void operator+(T); |
| 9 | }; |
| 10 | |
| 11 | template<class T> |
| 12 | decltype(&A::operator+<T>) f(); |
| 13 | |
| 14 | int main() { |
| 15 | f<int>(); |
| 16 | } |
| 17 | |
| 18 | // { dg-final { scan-assembler "_Z1fIiEDTadsr1AonplIT_EEv" } } |