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