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 #define CHECK_IF(expr) if(!(expr)) abort();
12 @interface Base: TestsuiteObject
30 @interface Derived: Base
55 @implementation Derived
60 CHECK_IF(field2 == 1);
73 Derived *obj = [[Derived alloc] init];