1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Test changes

This commit is contained in:
Brian Fiete 2019-12-11 16:56:09 -08:00
parent 8b71f8d49a
commit 7247cad7f3
10 changed files with 121 additions and 59 deletions

View file

@ -1,4 +1,3 @@
//2
#define _ENABLE_ATOMIC_ALIGNMENT_FIX
#include <windows.h>
@ -134,10 +133,22 @@ void Zorq3()
int64_t q = 999;
}
void TestMem()
{
char* mem = (char*)::VirtualAlloc(0, 4096 * 2, MEM_RESERVE, PAGE_READWRITE);
::VirtualAlloc(mem, 4096, MEM_COMMIT, PAGE_READWRITE);
char* str = "Hey";
char* cPtr = mem + 4096 - 3;
memcpy(cPtr, str, 3);
}
// THIS IS VERSION 6.
extern "C"
__declspec(dllexport) void Test2(int aa, int bb, int cc, int dd)
{
TestMem();
Zorq();
Zorq2();
Zorq3();