From: brian Date: Wed, 5 May 2004 17:45:15 +0000 (-0700) Subject: test.c stuff X-Git-Tag: merge~15 X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=commitdiff_plain;h=cf86ad21fb90d5dd8e5b85649d35fa1010755f5c test.c stuff darcs-hash:20040505174515-24bed-a1e14a0407b1051966ed10379df83941b7bcf188.gz --- 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");