gcc/testsuite/g++.dg/modules/using-6_a.C
raw| 1 | // { dg-additional-options -fmodules-ts } |
| 2 | |
| 3 | export module bob; |
| 4 | // { dg-module-cmi bob } |
| 5 | |
| 6 | namespace A |
| 7 | { |
| 8 | export void swap (int &, int &); |
| 9 | void copy (int &); |
| 10 | } |
| 11 | |
| 12 | export template <typename T> |
| 13 | void Foo (T & a, T &b) |
| 14 | { |
| 15 | using A::swap; |
| 16 | swap (a, b); |
| 17 | |
| 18 | using A::copy; |
| 19 | copy (b); |
| 20 | } |