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