brintos

brintos / llvm-project-archived public Read only

0
0
Text · 478 B · 36eda1d Raw
34 lines · plain
1#import <Foundation/Foundation.h>2 3#include <vector>4 5@interface MyElement : NSObject {6}7@end8 9@interface MyClass : NSObject {10  std::vector<MyElement *> elements;11};12 13-(void)doSomething;14 15@end16 17@implementation MyClass18 19-(void)doSomething20{21  NSLog(@"Hello"); //% self.expect("expression -- elements", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["vector", "MyElement"]);22}23 24@end25 26int main ()27{28  @autoreleasepool29  {30    MyClass *c = [MyClass alloc];31    [c doSomething];32  }33}34