* ggc-common.c (ggc_print_statistics): Make arguments to fprintf
[official-gcc.git] / libstdc++ / tests / tlist.exp
blob65f7806826f604eb44d060986297453eb52ad7e3
2 list<int> a = sequence(1, 20);
3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
5 list<int> b = randseq(20);
6 28 27 5 17 44 6 9 40 15 26 49 35 15 48 13 27 25 25 9 6
8 list<int> c = a and b;
9 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 28 27 5 17 44 6 9 40 15 26 49 35 15 48 13 27 25 25 9 6
11 list<int> d = map(inc, a);
12 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
14 list<int> e = reverse(a);
15 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
17 list<int> f = select(is_odd, a);
18 1 3 5 7 9 11 13 15 17 19
20 int red = a.reduce(plus, 0);
21 210
22 int second = a[2];
24 list<int> g = combine(plus, a, b);
25 29 29 8 21 49 12 16 48 24 36 60 47 28 62 28 43 42 43 28 26
27 g.del(is_odd);
28 8 12 16 48 24 36 60 28 62 28 42 28 26
30 b.sort(int_compare);
31 5 6 6 9 9 13 15 15 17 25 25 26 27 27 28 35 40 44 48 49
33 list<int> h = merge(a, b, int_compare);
34 1 2 3 4 5 5 6 6 6 7 8 9 9 9 10 11 12 13 13 14 15 15 15 16 17 17 18 19 20 25 25 26 27 27 28 35 40 44 48 49
36 h via iterator:
37 1, 2, 3, 4, 5, 5, 6, 6, 6, 7, 8, 9, 9, 9, 10, 11, 12, 13, 13, 14, 15, 15, 15, 16, 17, 17, 18, 19, 20, 25, 25, 26, 27, 27, 28, 35, 40, 44, 48, 49,
44 done