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

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

int main()
{
printf("testing <vector> functions in std:: namespace:\n");
std::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>; std::vector is ok\n");
return 0;
}