diff options
| author | Enrico Granata <granata.enrico@gmail.com> | 2012-01-31 17:50:00 +0000 |
|---|---|---|
| committer | Enrico Granata <granata.enrico@gmail.com> | 2012-01-31 17:50:00 +0000 |
| commit | 56a27bb5fa309819a333d1d0807ab36dcd9dd193 (patch) | |
| tree | 1d17d92aac23843d24771528174f6b5ee3e6544f /lldb/test/functionalities/data-formatter/data-formatter-python-synth/main.cpp | |
| parent | 7e7d0ca1a2f853000671dc636785971178459b2c (diff) | |
Splitting test case for Python synthetic children: part 1 test is only testing the synthetic children feature itself. More test cases will be commited for individual STL containers
llvm-svn: 149393
Diffstat (limited to 'lldb/test/functionalities/data-formatter/data-formatter-python-synth/main.cpp')
| -rw-r--r-- | lldb/test/functionalities/data-formatter/data-formatter-python-synth/main.cpp | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-python-synth/main.cpp b/lldb/test/functionalities/data-formatter/data-formatter-python-synth/main.cpp index 67f04e721d21..b921915b91c5 100644 --- a/lldb/test/functionalities/data-formatter/data-formatter-python-synth/main.cpp +++ b/lldb/test/functionalities/data-formatter/data-formatter-python-synth/main.cpp @@ -1,18 +1,3 @@ -#include <list> -#include <map> -#include <string> -#include <vector> -typedef std::vector<int> int_vect; -typedef std::vector<std::string> string_vect; - -typedef std::list<int> int_list; -typedef std::list<std::string> string_list; - -#define intint_map std::map<int, int> -#define strint_map std::map<std::string, int> -#define intstr_map std::map<int, std::string> -#define strstr_map std::map<std::string, std::string> - struct foo { int a; @@ -73,92 +58,5 @@ int main() 256*256*'C'+ 256*256*256*'D'); - int_vect numbers; - numbers.push_back(1); - numbers.push_back(12); - numbers.push_back(123); - numbers.push_back(1234); - numbers.push_back(12345); - numbers.push_back(123456); - numbers.push_back(1234567); - - numbers.clear(); - - numbers.push_back(7); - - string_vect strings; - strings.push_back(std::string("goofy")); - strings.push_back(std::string("is")); - strings.push_back(std::string("smart")); - - strings.push_back(std::string("!!!")); - - strings.clear(); - - int_list numbers_list; - - numbers_list.push_back(0x12345678); - numbers_list.push_back(0x11223344); - numbers_list.push_back(0xBEEFFEED); - numbers_list.push_back(0x00ABBA00); - numbers_list.push_back(0x0ABCDEF0); - numbers_list.push_back(0x0CAB0CAB); - - numbers_list.clear(); - - numbers_list.push_back(1); - numbers_list.push_back(2); - numbers_list.push_back(3); - numbers_list.push_back(4); - - string_list text_list; - text_list.push_back(std::string("goofy")); - text_list.push_back(std::string("is")); - text_list.push_back(std::string("smart")); - - text_list.push_back(std::string("!!!")); - - intint_map ii; - - ii[0] = 0; - ii[1] = 1; - ii[2] = 0; - ii[3] = 1; - ii[4] = 0; - ii[5] = 1; - ii[6] = 0; - ii[7] = 1; - ii[8] = 0; - - ii.clear(); - - strint_map si; - - si["zero"] = 0; - si["one"] = 1; - si["two"] = 2; - si["three"] = 3; - si["four"] = 4; - - si.clear(); - - intstr_map is; - - is[0] = "goofy"; - is[1] = "is"; - is[2] = "smart"; - is[3] = "!!!"; - - is.clear(); - - strstr_map ss; - - ss["ciao"] = "hello"; - ss["casa"] = "house"; - ss["gatto"] = "cat"; - ss["a Mac.."] = "..is always a Mac!"; - - ss.clear(); - return 0; }
\ No newline at end of file |
