aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/list/main.cpp
blob: 191acdcc97be1ed678646838f8788553c1cb9ab5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <list>
#include <string>

typedef std::list<int> int_list;
typedef std::list<std::string> string_list;

int main()
{
    int_list numbers_list;
    
    numbers_list.push_back(0x12345678); // Set break point at this line.
    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")); // Optional break point at this line.
    text_list.push_back(std::string("is"));
    text_list.push_back(std::string("smart"));
    
    text_list.push_back(std::string("!!!"));
        
    return 0; // Set final break point at this line.
}