aboutsummaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unit/variant.unit21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/unit/variant.unit b/src/unit/variant.unit
new file mode 100644
index 0000000..ecfa5c3
--- /dev/null
+++ b/src/unit/variant.unit
@@ -0,0 +1,21 @@
1// vim: syntax=cpp
2/*
3 * Copyright (C) 2007-2010 Xagasoft, All rights reserved.
4 *
5 * This file is part of the libbu++ library and is released under the
6 * terms of the license contained in the file LICENSE.
7 */
8
9#include "bu/variant.h"
10
11suite Variant
12{
13 test construction
14 {
15 Bu::Variant v( 55 );
16 v.get<int>();
17
18 Bu::Variant v2( v );
19 v2.get<int>();
20 }
21}