aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/lib_test.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2012-12-03 09:09:18 +0900
committerMITSUNARI Shigeo <[email protected]>2012-12-03 09:09:18 +0900
commit3f66cdac5d66d2bb4c0b033e6358e3a60f4815fd (patch)
treee535847ef806841788ff9907a0d5cb06fef08b11 /test/lib_test.cpp
parent5f696277f74b561ca3f1108a17bcc292a53bc0ce (diff)
downloadxbyak-3f66cdac5d66d2bb4c0b033e6358e3a60f4815fd.tar.gz
xbyak-3f66cdac5d66d2bb4c0b033e6358e3a60f4815fd.zip
simple test for init
Diffstat (limited to 'test/lib_test.cpp')
-rw-r--r--test/lib_test.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/test/lib_test.cpp b/test/lib_test.cpp
index d5c91fe..dc7eee1 100644
--- a/test/lib_test.cpp
+++ b/test/lib_test.cpp
@@ -1,23 +1,12 @@
#include "lib.h"
-#include <xbyak/xbyak.h>
-
-struct Code : public Xbyak::CodeGenerator {
- Code()
- {
- printf("Code:%s\n", eax.toString());
- ret();
- }
-};
void init()
- try
{
static bool init = true;
printf("in lib_test %d\n", init);
if (!init) return;
init = false;
- static Code code;
-} catch (const Xbyak::Error& e) {
- printf("err=%s\n", Xbyak::ConvertErrorToString(e));
+ X::a.put();
}
+