summaryrefslogtreecommitdiffstats
path: root/packages/Python/lldbsuite/test/functionalities/set-data/main.m
blob: e1e69dc557154917bdb4c962bbc4a1fc573e3d0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#import <Foundation/Foundation.h>

int main ()
{
    @autoreleasepool
    {
        struct foo {
            int x;
            int y;
        } myFoo;

        myFoo.x = 2;
        myFoo.y = 3;    // First breakpoint

        NSString *string = [NSString stringWithFormat:@"%s", "Hello world!"];

        NSLog(@"%d %@", myFoo.x, string); // Second breakpoint
    }
}
OpenPOWER on IntegriCloud