summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/global_constructor/main.cpp
blob: d1c8038dfadbd76ca3d79566a5d18028d9c3df5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "foo.h"

struct Main {
  Main();
  int x;
};

Main::Main() : x(47) {
    bool some_code = x == 47; // !BR_main
}

Main MainObj;

int main() { return MainObj.x + FooObj.x; }
OpenPOWER on IntegriCloud