Set up small static-init test in Ballfield app

This commit is contained in:
pelya
2010-12-21 14:46:34 +00:00
parent 1089d16218
commit f975581a04
5 changed files with 44 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
#include <stdio.h>
#include "test.h"
int test::initCount = 0;
int test::initCount2 = 12345;
test::test()
{
initCount++;
__android_log_print(ANDROID_LOG_INFO, "==TEST==", "test::test(): initCount %d initCount2 %d", initCount, initCount2);
}
test::~test()
{
initCount--;
__android_log_print(ANDROID_LOG_INFO, "==TEST==", "test::~test(): initCount %d initCount2 %d", initCount, initCount2);
}