Guest User

Untitled

a guest
Jan 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <assert.h>
  3.  
  4. bool testTrue1()
  5. {
  6. __asm mov eax, -1;
  7. }
  8.  
  9. bool testTrue2()
  10. {
  11. __asm mov eax, 1337;
  12. }
  13.  
  14. bool testFalse1()
  15. {
  16. __asm mov eax, 0;
  17. }
  18.  
  19. bool testFalse2()
  20. {
  21. __asm xor eax, eax;
  22. }
  23.  
  24. int main()
  25. {
  26. assert(testTrue1());
  27. assert(testTrue2());
  28. assert(!testFalse1());
  29. assert(!testFalse2());
  30. return 1;
  31. }
Add Comment
Please, Sign In to add comment