diff options
| author | No Author <no-author@gcc.gnu.org> | 1997-08-21 22:58:49 +0000 |
|---|---|---|
| committer | No Author <no-author@gcc.gnu.org> | 1997-08-21 22:58:49 +0000 |
| commit | 9d67cee02262346526bb25cbcf54750ebf134ecb (patch) | |
| tree | b5402095de45a8d16fd7dd80a4fa06b7f02a0bda /libstdc++/tests/tvector.cc | |
| parent | 2f08086dbba6a317202d4655c14984f55c84e1b0 (diff) | |
This commit was manufactured by cvs2svn to create tag 'start'.misc/start
From-SVN: r14881
Diffstat (limited to 'libstdc++/tests/tvector.cc')
| -rw-r--r-- | libstdc++/tests/tvector.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libstdc++/tests/tvector.cc b/libstdc++/tests/tvector.cc new file mode 100644 index 00000000000..8b5f8091cf6 --- /dev/null +++ b/libstdc++/tests/tvector.cc @@ -0,0 +1,23 @@ +#include <vector.h> +#include <iostream.h> +#include <algo.h> + +main () +{ + cout << "Fill of C array:\n"; + char x[50]; + fill (x, x+50, '/'); + fill (x+1, x+49, '*'); + copy (x, x+50, ostream_iterator<char>(cout)); + + cout << "\nFill of vector<char>:\n"; + + vector<char> cvec; + cvec.insert (cvec.begin(), 50, '/'); + fill (cvec.begin()+1, cvec.end()-1, '-'); + copy (cvec.begin(), cvec.end(), ostream_iterator<char>(cout)); + cout << endl; +} + +template class __malloc_alloc_template<0>; +template class __default_alloc_template<false, 0>; |
