mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 22:34:09 +02:00
Tests for split global with explicit reference
This commit is contained in:
parent
c11449f9db
commit
e6f722bf7a
4 changed files with 26 additions and 1 deletions
|
@ -41,3 +41,14 @@ static
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace LibSpace
|
||||||
|
{
|
||||||
|
static
|
||||||
|
{
|
||||||
|
public static int MethodB()
|
||||||
|
{
|
||||||
|
return 200;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -33,3 +33,14 @@ static
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace LibSpace
|
||||||
|
{
|
||||||
|
static
|
||||||
|
{
|
||||||
|
public static int MethodA()
|
||||||
|
{
|
||||||
|
return 100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -45,6 +45,9 @@ namespace Tests
|
||||||
|
|
||||||
const int* iPtr = cValsInt[2][0];
|
const int* iPtr = cValsInt[2][0];
|
||||||
Test.Assert(iPtr == null);
|
Test.Assert(iPtr == null);
|
||||||
|
|
||||||
|
Test.Assert(LibSpace.MethodA() == 100);
|
||||||
|
Test.Assert(LibSpace.MethodB() == 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue