Debian Codegraph @

gcc/testsuite/g++.dg/modules/using-8_a.C

raw
1 // { dg-additional-options "-fmodules-ts -Wno-pedantic" }
2 module;
3 # 4 __FILE__ 1
4 namespace A
5 {
6 void swap (int &, int &);
7 void copy (int &);
8 }
9 # 10 "" 2
10 export module bob;
11 // { dg-module-cmi bob }
12
13 export template <typename T>
14 void Foo (T & a, T &b)
15 {
16 using A::swap;
17 swap (a, b);
18
19 using A::copy;
20 copy (b);
21 }