aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata/precompiled-header/main.cpp
blob: 400762bc6745969bc4bb04591ed54c87b804460d (plain)
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
#include "myobject.h"
#include <algorithm>
#include <iostream>
#include <list>

using namespace std;

int main()
{
    MyObject obj;
    list<int> lst;
    lst.push_back(1);
    lst.push_back(2);
    lst.push_back(3);
    lst.push_back(4);
    lst.push_back(5);
    lst.push_back(6);
    lst.push_back(7);
    lst.push_back(8);
    lst.push_back(9);
    reverse(lst.begin(), lst.end());
    for (list<int>::iterator it=lst.begin(); it != lst.end(); ++it)
        cout << *it << ", ";
    cout << endl;
    return 0;
}