1 | #import <Foundation/Foundation.h> |
2 | |
3 | int main() { |
4 | NSDictionary* dic = @{@1 : @2}; |
5 | BOOL b = NO; |
6 | NSLog(@"hello world" ); //% dic = self.frame().FindVariable("dic") |
7 | //% dic.SetPreferSyntheticValue(True) |
8 | //% dic.SetPreferDynamicValue(lldb.eDynamicCanRunTarget) |
9 | //% dic.SetValueFromCString("12") |
10 | //% b = self.frame().FindVariable("b") |
11 | //% b.SetValueFromCString("YES") |
12 | return 0; //% dic = self.frame().FindVariable("dic") |
13 | //% self.assertTrue(dic.GetValueAsUnsigned() == 0xC, "failed to read what I wrote") |
14 | //% b = self.frame().FindVariable("b") |
15 | //% self.assertTrue(b.GetValueAsUnsigned() == 0x0, "failed to update b") |
16 | } |
17 | |