Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Issue 15512 - Implement better C++ name mangling feature.
- Loading branch information
look-at-me
committed
Sep 16, 2018
1 parent
61fe641
commit d974700
Showing
5 changed files
with
94 additions
and
14 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
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
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,25 @@ | ||
|
||
|
||
extern(C++, "true") | ||
{ | ||
} | ||
|
||
extern(C++, "__traits") | ||
{ | ||
} | ||
|
||
extern(C++, "foo") | ||
{ | ||
} | ||
|
||
int foo; // no name clashing with above namespace | ||
|
||
extern(C++, "std", "chrono") | ||
{ | ||
void func(); | ||
} | ||
|
||
version(Windows) static assert(func.mangleof == "?func@chrono@std@@YAXXZ"); | ||
else static assert(func.mangleof == "_ZNSt6chrono4funcEv"); | ||
|
||
|