1 /* Check if bitfield ivars are inherited correctly (i.e., without
2 being "promoted" to ints). */
3 /* Contributed by Ziemowit Laski <zlaski@apple.com>. */
5 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
7 #include "../objc-obj-c++-shared/TestsuiteObject.m"
10 extern void abort(void);
12 #define CHECK_IF(expr) if(!(expr)) abort();
14 @interface Base: TestsuiteObject
32 @interface Derived: Base
57 @implementation Derived
62 CHECK_IF(field2 == 1);
75 Derived *obj = [[Derived alloc] init];