-
-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4787 from 9rnsr/fix14588
[REG2.067] Issue 14588 - undefined reference error while linking with -debug option to a static library
- Loading branch information
Showing
3 changed files
with
28 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,15 @@ | ||
| module imports.link14588a; | ||
|
|
||
| void func(alias a)() | ||
| { | ||
| } | ||
|
|
||
| class A | ||
| { | ||
| int i; | ||
|
|
||
| void all()() | ||
| { | ||
| func!(i)(); | ||
| } | ||
| } |
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,10 @@ | ||
| // EXTRA_SOURCES: imports/link14588a.d | ||
| // PERMUTE_ARGS: -allinst -unittest -debug -inline | ||
| // COMPILE_SEPARATELY | ||
|
|
||
| import imports.link14588a; | ||
|
|
||
| void main() | ||
| { | ||
| new A().all(); | ||
| } |