summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/var_path/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/var_path/main.cpp')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/var_path/main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/var_path/main.cpp b/lldb/packages/Python/lldbsuite/test/functionalities/var_path/main.cpp
new file mode 100644
index 00000000000..0ea19cfcfea
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/var_path/main.cpp
@@ -0,0 +1,15 @@
+#include <memory>
+
+struct Point {
+ int x, y;
+};
+
+int main() {
+ Point pt = { 1, 2 };
+ Point points[] = {{1010,2020}, {3030,4040}, {5050,6060}};
+ Point *pt_ptr = &points[1];
+ Point &pt_ref = pt;
+ std::shared_ptr<Point> pt_sp(new Point{111,222});
+ return 0; // Set a breakpoint here
+}
+
OpenPOWER on IntegriCloud