Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 14424 - dmd crashes with __traits(getUnitTests)
It was necessary to avoid excessive semantic3 with -unittest -inline (see commit 474e0d2), but today compiler incrementally runs semantic3 of the candidate functions for inlining (see commit df11f21). Therefore the hack is not necessary anymore.
- Loading branch information
Showing
3 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// REQUIRED_ARGS: -o- -unittest | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/ice14424.d(12): Error: tuple has no effect in expression (tuple(__unittestL3_1)) | ||
--- | ||
*/ | ||
|
||
void main() | ||
{ | ||
import imports.a14424; | ||
__traits(getUnitTests, imports.a14424); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module imports.a14424; | ||
|
||
unittest { } |