Skip to content
Snippets Groups Projects
Commit aaa33de2 authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

Update tests

parent 57a6c5b0
No related branches found
No related tags found
No related merge requests found
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int x = strtoul(argv[1], NULL, 16);
printf("x = 0x%x\n", x);
if (x >> 24 == 0x12)
if (((x&0xff0000) >> 16) == 0x34)
if (((x&0xff00) >> 8) == 0x56)
if ((x & 0xff) == 0x78)
return 1;
int x = 0;
std::cin >> std::hex >> x;
if (x != 0x01000000)
abort();
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment