reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #import <Foundation/Foundation.h> namespace NS { class MyObject { int i = 42; }; NS::MyObject globalObject; } @interface MyObject: NSObject @end int main () { @autoreleasepool { MyObject *o = [MyObject alloc]; return 0; //% self.expect("fr var o", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["(MyObject"]); //% self.expect("fr var globalObject", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["42"]); } } |