gcc/testsuite/g++.dg/abi/mangle75.C
raw| 1 | // PR c++/91377 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | // { dg-additional-options -fabi-compat-version=0 } |
| 4 | |
| 5 | struct f { |
| 6 | static constexpr int d = 3; |
| 7 | typedef int e; |
| 8 | }; |
| 9 | template <int a> struct x { }; |
| 10 | template <typename g, g j, g m> using n = x<j + m>; |
| 11 | template <typename ac> auto v() -> n<typename ac::e, 0, ac::d>; |
| 12 | void af() { v<f>(); } |
| 13 | |
| 14 | // { dg-final { scan-assembler "_Z1vI1fE1xIXplLi0EsrT_1dEEv" } } |