Commit graph

6 commits

Author SHA1 Message Date
Martin Kinkelin
967947eb84 Emulate @weak functions on Windows and don't emit COMDATs for ELF anymore
Emulation for @weak global variables is still left out but should be
analogous.

The test adaptations are mostly a revert of 3893840f. The testcase has
shown that @weak hasn't worked properly for ELF (linker apparently
prefers the version in the 1st object file, independent of whether it's
weak or not), because the functions are emitted in COMDATs.
clang emits COMDATs for templates and inline functions only, not for
regular functions.
2020-05-16 20:42:57 +02:00
Johan Engelen
ae05d0cbe5 Fix attributes.d test for PPC. (#2635) (#2644)
On PPC, the i32 ABI is `signext i32`.
2018-04-10 22:01:15 +02:00
Martin
d53ffb6ebb Adapt lit-tests to new Win32 D mangling 2017-10-07 14:06:17 +02:00
Johan Engelen
823a9efe26 Merge branch 'ltsmaster'
Solved merge conflicts in:
	gen/abi.cpp
	gen/toir.cpp
	runtime/druntime
	tests/d2/dmd-testsuite
	tests/lit.site.cfg.in
2016-03-29 11:40:20 +02:00
Martin
bbb9b7a479 Lit tests: Allow for extra calling conventions and name mangling
Required by 32-bit MSVC.
2016-03-16 19:45:37 +01:00
Johan Engelen
8ac39a4f2d Relocate the Lit-based testsuite to /tests (from /tests/ir).
The plan is to have subdirs for grouping tests. For example, for PGO we could create the /tests/pgo folder. Lit automatically picks up on subdirs.
2016-02-29 00:34:37 +01:00
Renamed from tests/ir/attributes.d (Browse further)