|
|
1.1 ! root 1: /* test.c - main */ ! 2: ! 3: #include <conf.h> ! 4: #include <kernel.h> ! 5: ! 6: /*------------------------------------------------------------------------ ! 7: * main -- current test routines ! 8: *------------------------------------------------------------------------ ! 9: */ ! 10: main() ! 11: { ! 12: int i; ! 13: ! 14: kprintf("Testing integer overflow trap\n"); ! 15: for (i=0x7ffffffc; i != 0x80000000; i++) ! 16: kprintf ("trying %d\n", i); ! 17: kprintf("No overflow trap!!!!\n"); ! 18: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.