gcc/testsuite/g++.dg/modules/using-3.C
raw| 1 | // { dg-additional-options -fmodules-ts } |
| 2 | export module bad; |
| 3 | // { dg-module-cmi !bad } |
| 4 | |
| 5 | namespace N |
| 6 | { |
| 7 | static int foo (); |
| 8 | int bar (); |
| 9 | } |
| 10 | |
| 11 | using N::foo; |
| 12 | using N::bar; |
| 13 | |
| 14 | export using N::foo; // { dg-error "does not have external linkage" } |
| 15 | export using N::bar; // { dg-error "does not have external linkage" } |