1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/* bug1-2195.c frontend couldn't handle the addition to void * used in comparison. */ #include <testfwk.h> void f(void *b, unsigned j) { unsigned char *i = b; i <= b + j; } void testBug(void) { f(0, 0); }