Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 19201 - func called with argument types (ulong) matches bot…
…h: __c_long and __c_ulong
- Loading branch information
Showing
2 changed files
with
33 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,30 @@ | ||
// https://issues.dlang.org/show_bug.cgi?id=19201 | ||
enum __c_long : int; | ||
enum __c_ulong : uint; | ||
|
||
enum __c_longlong : long; | ||
enum __c_ulonglong : ulong; | ||
|
||
void test19201a(uint r); | ||
void test19201a(int r); | ||
|
||
void test19201b(ulong r); | ||
void test19201b(long r); | ||
|
||
void test19201c(__c_long r); | ||
void test19201c(__c_ulong r); | ||
|
||
void test19201d(__c_longlong r); | ||
void test19201d(__c_ulonglong r); | ||
|
||
void test19201() | ||
{ | ||
test19201a(0); | ||
test19201a(0u); | ||
test19201b(0L); | ||
test19201b(0UL); | ||
test19201c(0); | ||
test19201c(0u); | ||
test19201d(0L); | ||
test19201d(0UL); | ||
} |