e66c6b15e7f5c7e8fc136326f6199b14a27359e6
[openbsd] /
1 //===-- main.m ---------------------------------------------------*- ObjC -*-===//
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 #import <Foundation/Foundation.h>
9
10 int main() {
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")
18 }