summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/Reproducer/Modules/Inputs
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/Shell/Reproducer/Modules/Inputs')
-rw-r--r--lldb/test/Shell/Reproducer/Modules/Inputs/Bar.h3
-rw-r--r--lldb/test/Shell/Reproducer/Modules/Inputs/Foo.h1
-rw-r--r--lldb/test/Shell/Reproducer/Modules/Inputs/ModuleCXX.in6
-rw-r--r--lldb/test/Shell/Reproducer/Modules/Inputs/main.cpp9
-rw-r--r--lldb/test/Shell/Reproducer/Modules/Inputs/module.modulemap7
5 files changed, 26 insertions, 0 deletions
diff --git a/lldb/test/Shell/Reproducer/Modules/Inputs/Bar.h b/lldb/test/Shell/Reproducer/Modules/Inputs/Bar.h
new file mode 100644
index 00000000000..d004baf3168
--- /dev/null
+++ b/lldb/test/Shell/Reproducer/Modules/Inputs/Bar.h
@@ -0,0 +1,3 @@
+struct Bar {
+ int success;
+};
diff --git a/lldb/test/Shell/Reproducer/Modules/Inputs/Foo.h b/lldb/test/Shell/Reproducer/Modules/Inputs/Foo.h
new file mode 100644
index 00000000000..1fe02e89786
--- /dev/null
+++ b/lldb/test/Shell/Reproducer/Modules/Inputs/Foo.h
@@ -0,0 +1 @@
+struct Foo {};
diff --git a/lldb/test/Shell/Reproducer/Modules/Inputs/ModuleCXX.in b/lldb/test/Shell/Reproducer/Modules/Inputs/ModuleCXX.in
new file mode 100644
index 00000000000..0f5bb7864f2
--- /dev/null
+++ b/lldb/test/Shell/Reproducer/Modules/Inputs/ModuleCXX.in
@@ -0,0 +1,6 @@
+breakpoint set -f main.cpp -l 5
+run
+expr -l Objective-C++ -- @import Foo
+expr -l Objective-C++ -- @import Bar
+expr -- Bar()
+reproducer generate
diff --git a/lldb/test/Shell/Reproducer/Modules/Inputs/main.cpp b/lldb/test/Shell/Reproducer/Modules/Inputs/main.cpp
new file mode 100644
index 00000000000..e6a331bb405
--- /dev/null
+++ b/lldb/test/Shell/Reproducer/Modules/Inputs/main.cpp
@@ -0,0 +1,9 @@
+#include "Foo.h"
+
+void stop() {}
+
+int main(int argc, char **argv) {
+ Foo foo;
+ stop(); // break here.
+ return 0;
+}
diff --git a/lldb/test/Shell/Reproducer/Modules/Inputs/module.modulemap b/lldb/test/Shell/Reproducer/Modules/Inputs/module.modulemap
new file mode 100644
index 00000000000..4221d0f9134
--- /dev/null
+++ b/lldb/test/Shell/Reproducer/Modules/Inputs/module.modulemap
@@ -0,0 +1,7 @@
+module Foo {
+ header "Foo.h"
+}
+
+module Bar {
+ header "Bar.h"
+}
OpenPOWER on IntegriCloud