1//===-- main.cpp -------------------------------------------------*- C++ -*-===// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8 9#import <Foundation/Foundation.h> 10 11struct ThreeObjects 12{ 13 id one; 14 id two; 15 id three; 16}; 17 18int main() 19{ 20 NSArray *array1 = @[@0xDEADBEEF, @0xFEEDBEEF, @0xBEEFFADE]; 21 NSArray *array2 = @[@"Hello", @"World"]; 22 NSDictionary *dictionary = @{@1: array2, @"Two": array2}; 23 ThreeObjects *tobjects = new ThreeObjects(); 24 tobjects->one = array1; 25 tobjects->two = array2; 26 tobjects->three = dictionary; 27 id* objects = (id*)tobjects; 28 return 0; // break here 29} 30