summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/completion/main.cpp
blob: 0814bb9cc0acf71d99bed3c55c9e0bfe0008e634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Foo
{
public:
    int Bar(int x, int y)
    {
        return x + y;
    }
};

struct Container { int MemberVar; };

int main()
{
    Foo fooo;
    Foo *ptr_fooo = &fooo;
    fooo.Bar(1, 2);

    Container container;
    Container *ptr_container = &container;
    return container.MemberVar = 3; // Break here
}
OpenPOWER on IntegriCloud