mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00

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>
18 lines
426 B
D
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();
|
|
}
|