Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/modules/using-3.C
2023-03-06 14:48:14 +01:00

18 lines
350 B
C

// { dg-additional-options -fmodules-ts }
export module bad;
// { dg-module-cmi !bad }
namespace N
{
static int foo ();
int bar ();
}
using N::foo;
using N::bar;
export using N::foo; // { dg-error "does not have external linkage" }
export using N::bar; // { dg-error "does not have external linkage" }
// { dg-prune-output "not writing module" }