aboutsummaryrefslogtreecommitdiff
path: root/src/tests/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/console.cpp')
-rw-r--r--src/tests/console.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/tests/console.cpp b/src/tests/console.cpp
deleted file mode 100644
index 670ff5b..0000000
--- a/src/tests/console.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
1/*
2 * Copyright (C) 2007-2011 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#include <bu/sio.h>
9using namespace Bu;
10
11#include <iostream>
12using namespace std;
13
14typedef struct Counter
15{
16 Counter() : i( 0 )
17 {
18 }
19
20 int get()
21 {
22 i++;
23 return i-1;
24 }
25
26 int i;
27} Counter;
28
29template<typename a>
30void runtest( a &out )
31{
32 Counter c;
33 out << c.get() << ", " << c.get() << ", " << c.get() << ", " << c.get() << ", " << c.get() << "\n";
34}
35
36int main()
37{
38 runtest( cout );
39 runtest( sio );
40
41 return 0;
42}
43