1 /* Check if bitfield ivars are inherited correctly (i.e., without
2 being "promoted" to ints). */
3 /* Contributed by Ziemowit Laski <zlaski@apple.com>. */
6 #include <objc/Object.h>
9 #define CHECK_IF(expr) if(!(expr)) abort();
11 @interface Base: Object
29 @interface Derived: Base
54 @implementation Derived
59 CHECK_IF(field2 == 1);
72 Derived *obj = [[Derived alloc] init];