1 //===-- main.m ---------------------------------------------------*- ObjC -*-===//
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
7 //===----------------------------------------------------------------------===//
8 #import <Foundation/Foundation.h>
11 NSDictionary* dic = @{@1 : @2};
12 NSLog(@"hello world"); //% dic = self.frame().FindVariable("dic")
13 //% dic.SetPreferSyntheticValue(True)
14 //% dic.SetPreferDynamicValue(lldb.eDynamicCanRunTarget)
15 //% dic.SetValueFromCString("12")
16 return 0; //% dic = self.frame().FindVariable("dic")
17 //% self.assertTrue(dic.GetValueAsUnsigned() == 0xC, "failed to read what I wrote")