aboutsummaryrefslogtreecommitdiff
path: root/src/tests/atom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/atom.cpp')
-rw-r--r--src/tests/atom.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/tests/atom.cpp b/src/tests/atom.cpp
deleted file mode 100644
index 7808282..0000000
--- a/src/tests/atom.cpp
+++ /dev/null
@@ -1,32 +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/atom.h"
9#include <stdio.h>
10#include <stdlib.h>
11
12typedef struct bob
13{
14 int a, b;
15} bob;
16int main()
17{
18 Bu::Atom<int> aInt;
19 Bu::Atom<const char *> aStr;
20 Bu::Atom<bob> aBob;
21
22 aBob = bob();
23 aBob->a = 5;
24
25 aStr.set("Hey there, dude");
26 aInt.set( 55 );
27 int me = aInt;
28 aInt = 12;
29 printf("%d, %d\n", aInt.get(), me );
30 printf("%s\n", aStr.get() );
31}
32