dmd/compiler/test/fail_compilation/needspkgmod.d
Andrei Horodniceanu fdd25893e0 compiler/test/fail_compilation/needspkgmod.d: pass -L--no-demangle
The bfd linker since version 2.43 automatically demangles D
symbols. It could do this before as well, though it was not automatic,
it required the `--demangle=dlang` switch.

Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
2024-09-09 16:10:25 +02:00

18 lines
426 B
D

// ARG_SETS: -i=,
// ARG_SETS: -i=imports.pkgmod313,
// ARG_SETS: -i=,imports.pkgmod313
// ARG_SETS: -i=imports.pkgmod313,-imports.pkgmod313.mod
// ARG_SETS: -i=imports.pkgmod313.package,-imports.pkgmod313.mod
// REQUIRED_ARGS: -Icompilable -L--no-demangle
// LINK:
/*
TEST_OUTPUT:
----
$r:.+_D7imports9pkgmod3133mod3barFZv.*Error: linker exited with status.+$
----
*/
import imports.pkgmod313.mod;
void main()
{
bar();
}