mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Clean up test
This commit is contained in:
parent
fe83040cbd
commit
9c8a348e21
@ -401,36 +401,6 @@ static int test_operator_increment()
|
||||
return Error;
|
||||
}
|
||||
|
||||
namespace heap
|
||||
{
|
||||
struct A
|
||||
{
|
||||
float f;
|
||||
};
|
||||
|
||||
struct B : public A
|
||||
{
|
||||
float g;
|
||||
glm::vec4 v;
|
||||
};
|
||||
|
||||
int test()
|
||||
{
|
||||
int Error = 0;
|
||||
|
||||
A* p = new B;
|
||||
p->f = 0.f;
|
||||
delete p;
|
||||
|
||||
std::size_t const Count1 = sizeof(B);
|
||||
std::size_t const Count2 = 32;
|
||||
|
||||
Error += Count1 == Count2 ? 0 : 1;
|
||||
|
||||
return Error;
|
||||
}
|
||||
}//namespace heap
|
||||
|
||||
static int test_vec4_simd()
|
||||
{
|
||||
int Error = 0;
|
||||
@ -458,7 +428,6 @@ int main()
|
||||
Error += test_vec4_swizzle_partial();
|
||||
Error += test_vec4_simd();
|
||||
Error += test_operator_increment();
|
||||
Error += heap::test();
|
||||
|
||||
return Error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user