aboutsummaryrefslogtreecommitdiff
path: root/src/tests/hash.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tests/hash.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/tests/hash.cpp b/src/tests/hash.cpp
deleted file mode 100644
index 7cefb79..0000000
--- a/src/tests/hash.cpp
+++ /dev/null
@@ -1,31 +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/hash.h"
9#include "bu/sptr.h"
10
11typedef struct Bob
12{
13 int nID;
14} Bob;
15
16int main()
17{
18 Bu::Hash<int, Bu::SPtr<const Bob> > lb;
19 for( int j = 0; j < 10; j++ )
20 {
21 Bob *b = new Bob;
22 b->nID = j;
23 lb.insert( j, b );
24 }
25
26 for( int j = 0; j < 10; j++ )
27 {
28 printf("%d\n", lb[j].getValue()->nID );
29 }
30}
31