gcc/testsuite/g++.dg/modules/ttp-1_b.C
raw| 1 | // { dg-additional-options -fmodules-ts } |
| 2 | |
| 3 | import bob; |
| 4 | |
| 5 | template<typename T> struct X |
| 6 | { |
| 7 | using type = T; |
| 8 | }; |
| 9 | |
| 10 | template<typename X, typename Y> struct same; |
| 11 | template<typename X> struct same<X, X> {}; |
| 12 | |
| 13 | void frob () |
| 14 | { |
| 15 | using type = Wrapper<X, int>::type::type; |
| 16 | |
| 17 | same<type, int> v; |
| 18 | } |