1extern "C" int puts(const char *s);
2
3struct Structure {
4 int number = 30;
5 void f() { puts(s: "break inside"); }
6};
7
8struct Wrapper {
9 Structure s;
10};
11
12struct Opaque;
13
14int main(int argc, char **argv) {
15 Structure s;
16 Wrapper w;
17 Wrapper *wp = &w;
18 Opaque *opaque = (Opaque *)(void *)&s;
19 puts(s: "break here");
20 s.f();
21 return 0;
22}
23

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of lldb/test/API/commands/dwim-print/main.cpp