-
-
Notifications
You must be signed in to change notification settings - Fork 609
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 #6415 from ibuclaw/issue17074
Fix Issue 17074: extern(C++, keyword) crashes compiler
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 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,39 @@ | ||
| /* | ||
| TEST_OUTPUT: | ||
| --- | ||
| fail_compilation/ice17074.d(9): Error: identifier expected for C++ namespace | ||
| fail_compilation/ice17074.d(9): Error: found 'cast' when expecting ')' | ||
| fail_compilation/ice17074.d(9): Error: declaration expected, not ')' | ||
| --- | ||
| */ | ||
| extern(C++, cast) void ice_keyword(); | ||
|
|
||
| /* | ||
| TEST_OUTPUT: | ||
| --- | ||
| fail_compilation/ice17074.d(19): Error: identifier expected for C++ namespace | ||
| fail_compilation/ice17074.d(19): Error: found '__overloadset' when expecting ')' | ||
| fail_compilation/ice17074.d(19): Error: declaration expected, not ')' | ||
| --- | ||
| */ | ||
| extern(C++, std.__overloadset) void ice_std_keyword(); | ||
|
|
||
| /* | ||
| TEST_OUTPUT: | ||
| --- | ||
| fail_compilation/ice17074.d(29): Error: identifier expected for C++ namespace | ||
| fail_compilation/ice17074.d(29): Error: found '...' when expecting ')' | ||
| fail_compilation/ice17074.d(29): Error: declaration expected, not ')' | ||
| --- | ||
| */ | ||
| extern(C++, ...) void ice_token(); | ||
|
|
||
| /* | ||
| TEST_OUTPUT: | ||
| --- | ||
| fail_compilation/ice17074.d(39): Error: identifier expected for C++ namespace | ||
| fail_compilation/ice17074.d(39): Error: found '*' when expecting ')' | ||
| fail_compilation/ice17074.d(39): Error: declaration expected, not ')' | ||
| --- | ||
| */ | ||
| extern(C++, std.*) void ice_std_token(); |