-
-
Notifications
You must be signed in to change notification settings - Fork 701
Fix Issue 18958 - extern(C++) wchar, dchar mangling not correct #8342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7899f89
Fix Issue 18958 - extern(C++) wchar, dchar mangling not correct
TurkeyMan 02cde82
Update tests
TurkeyMan 5621740
version out DMC incompatible tests
thewilsonator 12d7705
Correctly version out
thewilsonator a7de979
MSVC2013 doesn't support char16_t/char32_t
thewilsonator 76e0175
cppa
thewilsonator 9607acf
cppa
thewilsonator 169008d
typo
thewilsonator dab5b66
more
thewilsonator e417d3f
more
thewilsonator 17b0e0a
more
thewilsonator 7989df3
nutin' to see here
thewilsonator 0240a9f
*whistles*
thewilsonator File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -9,10 +9,21 @@ namespace std | |
| struct test19248 {int a;}; | ||
| }; | ||
|
|
||
| #ifdef __DMC__ | ||
| // DMC doesn't support c++11 | ||
| #elif defined (_MSC_VER) && _MSC_VER <= 1800 | ||
| // MSVC2013 doesn't support char16_t/char32_t | ||
| #else | ||
| #define TEST_UNICODE | ||
| #endif | ||
| bool passthrough(bool value) { return value; } | ||
| signed char passthrough(signed char value) { return value; } | ||
| unsigned char passthrough(unsigned char value) { return value; } | ||
| char passthrough(char value) { return value; } | ||
| #ifdef TEST_UNICODE | ||
| char16_t passthrough(char16_t value) { return value; } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you're going to have to wrap these in |
||
| char32_t passthrough(char32_t value) { return value; } | ||
| #endif | ||
| wchar_t passthrough(wchar_t value) { return value; } | ||
| short passthrough(short value) { return value; } | ||
| unsigned short passthrough(unsigned short value) { return value; } | ||
|
|
@@ -31,6 +42,10 @@ bool passthrough_ptr(bool *value) { return *value; } | |
| signed char passthrough_ptr(signed char *value) { return *value; } | ||
| unsigned char passthrough_ptr(unsigned char *value) { return *value; } | ||
| char passthrough_ptr(char *value) { return *value; } | ||
| #ifdef TEST_UNICODE | ||
| char16_t passthrough_ptr(char16_t *value) { return *value; } | ||
| char32_t passthrough_ptr(char32_t *value) { return *value; } | ||
| #endif | ||
| wchar_t passthrough_ptr(wchar_t *value) { return *value; } | ||
| short passthrough_ptr(short *value) { return *value; } | ||
| unsigned short passthrough_ptr(unsigned short *value) { return *value; } | ||
|
|
@@ -49,6 +64,10 @@ bool passthrough_ref(bool &value) { return value; } | |
| signed char passthrough_ref(signed char &value) { return value; } | ||
| unsigned char passthrough_ref(unsigned char &value) { return value; } | ||
| char passthrough_ref(char &value) { return value; } | ||
| #ifdef TEST_UNICODE | ||
| char16_t passthrough_ref(char16_t &value) { return value; } | ||
| char32_t passthrough_ref(char32_t &value) { return value; } | ||
| #endif | ||
| wchar_t passthrough_ref(wchar_t &value) { return value; } | ||
| short passthrough_ref(short &value) { return value; } | ||
| unsigned short passthrough_ref(unsigned short &value) { return value; } | ||
|
|
||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.