1 /* Handle C++ scoping ('::') operators in ObjC message receivers gracefully. */
2 /* Author: Ziemowit Laski <zlaski@apple.com> */
5 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
6 #include "../objc-obj-c++-shared/TestsuiteObject.m"
14 static Derived *get_instance(int);
17 Derived *CxxClass::get_instance(int offs) {
21 @interface Derived: TestsuiteObject {
24 -(id)initWithValue:(int)val;
28 @implementation Derived
29 -(id)initWithValue:(int)val {
41 inst[1] = [[::Derived alloc] initWithValue:7];
42 inst[2] = [[Derived alloc] initWithValue:77];
44 r = [CxxClass::get_instance(2) derived_meth];
48 r = [CxxClass::get_instance(1) derived_meth];