]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/functionalities/data-formatter/setvaluefromcstring/main.m
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / functionalities / data-formatter / setvaluefromcstring / main.m
1 //===-- main.m ---------------------------------------------------*- ObjC -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 #import <Foundation/Foundation.h>
10
11 int main() {
12     NSDictionary* dic = @{@1 : @2};
13     NSLog(@"hello world"); //% dic = self.frame().FindVariable("dic")
14     //% dic.SetPreferSyntheticValue(True)
15     //% dic.SetPreferDynamicValue(lldb.eDynamicCanRunTarget)
16     //% dic.SetValueFromCString("12")
17     return 0; //% dic = self.frame().FindVariable("dic")
18     //% self.assertTrue(dic.GetValueAsUnsigned() == 0xC, "failed to read what I wrote")
19 }