mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +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
|
@ -111,4 +111,4 @@ static
|
|||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,15 @@ static
|
|||
{
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
namespace LibSpace
|
||||
{
|
||||
static
|
||||
{
|
||||
public static int MethodB()
|
||||
{
|
||||
return 200;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -32,4 +32,15 @@ static
|
|||
{
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
namespace LibSpace
|
||||
{
|
||||
static
|
||||
{
|
||||
public static int MethodA()
|
||||
{
|
||||
return 100;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -45,6 +45,9 @@ namespace Tests
|
|||
|
||||
const int* iPtr = cValsInt[2][0];
|
||||
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