X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Ftests%2FTest.c;h=b755e6953d939096232d758a0dcda7fcdc6eb19e;hb=cf86ad21fb90d5dd8e5b85649d35fa1010755f5c;hp=0e49b450c9cc1aaf1de7e86aff2f7baca7d410d6;hpb=98f786ce8ee1fcd9568d1c367160851d32e1c786;p=nestedvm.git diff --git a/src/tests/Test.c b/src/tests/Test.c index 0e49b45..b755e69 100644 --- a/src/tests/Test.c +++ b/src/tests/Test.c @@ -188,12 +188,35 @@ int main(int argc, char **argv) { memcpy(buf,"Hello, World",sizeof("Hello, World")); printf("%s\n",buf); } - printf("cwd: %s\n",getcwd(NULL,0)); - printf("isatty(0): %d\n",isatty(0)); - printf("exiting\n"); + + { + /*long long ll = 0xdeadbeefdeadc0deLL; + long l = 0xdeadbeef; + unsigned char *tmp; + + printf("long long: %lld %llX\n",ll,ll); + tmp = (char*)≪ + for(i=0;i %lld \n",l); + if(l >=-64) printf("---> ERROR: %lld >= -64\n",l); + } + + //printf("cwd: %s\n",getcwd(NULL,0)); + //printf("isatty(0): %d\n",isatty(0)); + //printf("exiting\n"); return 0; } +long long zero = 0; +long long rl(long long n) { return n + zero; } + void suckram() { int total = 0; fprintf(stderr,"Eating up all available memory\n");