mirror of
https://github.com/dlang/dmd.git
synced 2025-04-28 06:00:13 +03:00
Get rid of obsolete CppRuntime_DigitalMars special cases
This commit is contained in:
parent
f08bbff91f
commit
01c9c22f3f
10 changed files with 24 additions and 136 deletions
|
@ -272,7 +272,6 @@ void main()
|
|||
foreach(byte val; values!byte()) check(val);
|
||||
foreach(ubyte val; values!ubyte()) check(val);
|
||||
foreach(char val; values!char()) check(val);
|
||||
version(CppRuntime_DigitalMars){} else
|
||||
version(CppRuntime_Microsoft)
|
||||
{
|
||||
// TODO: figure out how to detect VS2013 which doesn't support char16_t/char32_t
|
||||
|
|
|
@ -908,9 +908,7 @@ void fuzz2()
|
|||
}
|
||||
|
||||
////////
|
||||
version(CppRuntime_DigitalMars)
|
||||
enum UNICODE = false;
|
||||
else version(CppRuntime_Microsoft)
|
||||
version(CppRuntime_Microsoft)
|
||||
enum UNICODE = false; //VS2013 doesn't support them
|
||||
else
|
||||
enum UNICODE = true;
|
||||
|
|
|
@ -239,38 +239,30 @@ void test39()
|
|||
|
||||
extern(C++, "foo", "bar", "baz") int doStuff(int);
|
||||
|
||||
version(CppRuntime_DigitalMars) // DMC doesn't support c++11
|
||||
void test40();
|
||||
|
||||
void foovargs(T...)(T args)
|
||||
{
|
||||
void test40() {}
|
||||
void test41() {}
|
||||
static if (is(T[0] == char*))
|
||||
{
|
||||
assert(*args[0] == 'a');
|
||||
}
|
||||
else
|
||||
{
|
||||
float ret = args[0] + args[1];
|
||||
assert(ret == 3.0f);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
alias FooVargs = foovargs!(int, float);
|
||||
alias FooVargs2 = foovargs!(char*);
|
||||
|
||||
void test41();
|
||||
void make_shared_poc(T, Args...)(ref Args args)
|
||||
{
|
||||
void test40();
|
||||
|
||||
void foovargs(T...)(T args)
|
||||
{
|
||||
static if (is(T[0] == char*))
|
||||
{
|
||||
assert(*args[0] == 'a');
|
||||
}
|
||||
else
|
||||
{
|
||||
float ret = args[0] + args[1];
|
||||
assert(ret == 3.0f);
|
||||
}
|
||||
}
|
||||
|
||||
alias FooVargs = foovargs!(int, float);
|
||||
alias FooVargs2 = foovargs!(char*);
|
||||
|
||||
void test41();
|
||||
void make_shared_poc(T, Args...)(ref Args args)
|
||||
{
|
||||
assert(args[0] + args[1] == 3);
|
||||
}
|
||||
alias Make_Shared_Poc = make_shared_poc!(int, int, int);
|
||||
assert(args[0] + args[1] == 3);
|
||||
}
|
||||
alias Make_Shared_Poc = make_shared_poc!(int, int, int);
|
||||
|
||||
void main()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue