summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/SymbolFile/PDB/Inputs/test-pdb-function-level-linking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/unittests/SymbolFile/PDB/Inputs/test-pdb-function-level-linking.cpp')
-rw-r--r--lldb/unittests/SymbolFile/PDB/Inputs/test-pdb-function-level-linking.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/lldb/unittests/SymbolFile/PDB/Inputs/test-pdb-function-level-linking.cpp b/lldb/unittests/SymbolFile/PDB/Inputs/test-pdb-function-level-linking.cpp
new file mode 100644
index 00000000000..e1d5aabb357
--- /dev/null
+++ b/lldb/unittests/SymbolFile/PDB/Inputs/test-pdb-function-level-linking.cpp
@@ -0,0 +1,17 @@
+// Compile with "cl /c /ZI /sdl /EHsc /MTd /permissive-
+// test-pdb-function-level-linking.cpp"
+// Link with "link /debug:full test-pdb-function-level-linking.obj"
+
+#include <memory>
+#include <string>
+
+std::string foo()
+{
+ return "Hello!";
+}
+
+int main()
+{
+ auto x = foo();
+ return 0;
+}
OpenPOWER on IntegriCloud