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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user