Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <assert.h>
- bool testTrue1()
- {
- __asm mov eax, -1;
- }
- bool testTrue2()
- {
- __asm mov eax, 1337;
- }
- bool testFalse1()
- {
- __asm mov eax, 0;
- }
- bool testFalse2()
- {
- __asm xor eax, eax;
- }
- int main()
- {
- assert(testTrue1());
- assert(testTrue2());
- assert(!testFalse1());
- assert(!testFalse2());
- return 1;
- }
Add Comment
Please, Sign In to add comment