/* APPLE LOCAL begin radar 4291099 */ /* Test for generation of write-barriers for data members initialized in ctor's initializer list. */ /* { dg-do compile } */ /* { dg-options "-fnext-runtime -fobjc-gc -Wassign-intercept" } */ #include <objc/Object.h> @interface Bar : Object @end Bar *NP = 0; struct MyClass { MyClass () : path(0), new_path(NP) {} /* { dg-warning "strong-cast assignment has been intercepted" 2 } */ Bar *path; Bar *new_path; }; int main() { MyClass mc; return 0; } /* { dg-final { scan-assembler "objc_assign_strongCast" } } */ /* APPLE LOCAL end radar 4291099 */