aboutsummaryrefslogtreecommitdiff
path: root/src/cctest/vector/vector_h-global.cc
blob: 1fe0d035b013ee125ecab8c35d359ce6455a9b67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// $Header$

#include <stdio.h>
#include <vector.h>

int main()
{
printf("testing <vector.h> functions in global namespace:\n");
vector<int> v(3);
v[0] = 42;
v[1] = 69;
v[2] = 105;
printf("%d %d %d should be 42 69 105... ", v[0], v[1], v[2]);
printf(((v[0] == 42) && (v[1] == 69) && (v[2] == 105)) ? "ok\n" : "FAIL\n");
printf("==> #include <vector.h>; vector is ok\n");
return 0;
}