gcc/testsuite/g++.dg/abi/mangle30.C
raw| 1 | // Test for mangling of template args in a typename type. |
| 2 | // { dg-additional-options -fabi-compat-version=0 } |
| 3 | |
| 4 | struct A |
| 5 | { |
| 6 | template <class T> |
| 7 | struct B |
| 8 | { |
| 9 | typedef T myT; |
| 10 | }; |
| 11 | }; |
| 12 | |
| 13 | struct C {}; |
| 14 | |
| 15 | template <class T> |
| 16 | void f (T t, typename T::template B<C>::myT u, typename T::template B<int>::myT v); |
| 17 | |
| 18 | int main() |
| 19 | { |
| 20 | f (A(), C(), 1); |
| 21 | } |
| 22 | |
| 23 | // { dg-final { scan-assembler "_Z1fI1AEvT_NS1_1BI1CE3myTENS2_IiE3myTE" } } |