xref: /llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/main.cpp (revision 99451b4453688a94c6014cac233d371ab4cc342d)
1 #include <string>
2 #include <vector>
3 typedef std::vector<int> int_vect;
4 typedef std::vector<std::string> string_vect;
5 
main()6 int main()
7 {
8     int_vect numbers;
9     numbers.push_back(1);  // Set break point at this line.
10     numbers.push_back(12);  // Set break point at this line.
11     numbers.push_back(123);
12     numbers.push_back(1234);
13     numbers.push_back(12345);  // Set break point at this line.
14     numbers.push_back(123456);
15     numbers.push_back(1234567);
16 
17     numbers.clear();  // Set break point at this line.
18 
19     numbers.push_back(7);  // Set break point at this line.
20 
21     string_vect strings;  // Set break point at this line.
22     strings.push_back(std::string("goofy"));
23     strings.push_back(std::string("is"));
24     strings.push_back(std::string("smart"));
25 
26     strings.push_back(std::string("!!!"));  // Set break point at this line.
27 
28     strings.clear();  // Set break point at this line.
29 
30     return 0;// Set break point at this line.
31 }
32