brintos

brintos / llvm-project-archived public Read only

0
0
Text · 461 B · 74473b6 Raw
22 lines · plain
1#import <Foundation/Foundation.h>2 3struct ThreeObjects4{5  id one;6  id two;7  id three;8};9 10int main()11{12  NSArray *array1 = @[@0xDEADBEEF, @0xFEEDBEEF, @0xBEEFFADE];13  NSArray *array2 = @[@"Hello", @"World"];14  NSDictionary *dictionary = @{@1: array2, @"Two": array2};15  ThreeObjects *tobjects = new ThreeObjects();16  tobjects->one = array1;17  tobjects->two = array2;18  tobjects->three = dictionary;19  id* objects = (id*)tobjects;20  return 0; // break here21}22