diff options
author | MITSUNARI Shigeo <[email protected]> | 2012-12-03 09:09:18 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2012-12-03 09:09:18 +0900 |
commit | 3f66cdac5d66d2bb4c0b033e6358e3a60f4815fd (patch) | |
tree | e535847ef806841788ff9907a0d5cb06fef08b11 /test/lib_test.cpp | |
parent | 5f696277f74b561ca3f1108a17bcc292a53bc0ce (diff) | |
download | xbyak-3f66cdac5d66d2bb4c0b033e6358e3a60f4815fd.tar.gz xbyak-3f66cdac5d66d2bb4c0b033e6358e3a60f4815fd.zip |
simple test for init
Diffstat (limited to 'test/lib_test.cpp')
-rw-r--r-- | test/lib_test.cpp | 15 |
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(); } + |