diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
2 files changed, 11 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/libcxx/TestLibCxxModernTypeLookup.py b/lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/libcxx/TestLibCxxModernTypeLookup.py index a33c75494ec..b780677e709 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/libcxx/TestLibCxxModernTypeLookup.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/libcxx/TestLibCxxModernTypeLookup.py @@ -18,3 +18,6 @@ class LibcxxModernTypeLookup(TestBase): # Test a few simple expressions that should still work with modern-type-lookup. self.expect("expr pair", substrs=["(std::", "pair<int, long", "= (first = 1, second = 2)"]) + self.expect("expr foo", substrs=["(std::", "string", "\"bar\""]) + self.expect("expr map", substrs=["(std::", "map", "first = 1, second = 2"]) + self.expect("expr umap", substrs=["(std::", "unordered_map", "first = 1, second = 2"]) diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/libcxx/main.cpp b/lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/libcxx/main.cpp index 6db6160ba62..50cc8b1f61c 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/libcxx/main.cpp +++ b/lldb/packages/Python/lldbsuite/test/functionalities/modern-type-lookup/libcxx/main.cpp @@ -1,6 +1,14 @@ #include <utility> +#include <string> +#include <map> +#include <unordered_map> int main(int argc, char **argv) { std::pair<int, long> pair = std::make_pair<int, float>(1, 2L); + std::string foo = "bar"; + std::map<int, int> map; + map[1] = 2; + std::unordered_map<int, int> umap; + umap[1] = 2; return pair.first; // Set break point at this line. } |