1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/* bug-3320.c A variable scope issue resulting in an invalid compile-time error message. */ #include <testfwk.h> char c; void foo() { char *dest = &c; { *dest++ |= 1; } } void testBug(void) { c = 42; foo (); ASSERT (c == 43); }