summaryrefslogtreecommitdiff
path: root/trunk/Examples/test-suite/csharp/li_boost_shared_ptr_bits_runme.cs
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/Examples/test-suite/csharp/li_boost_shared_ptr_bits_runme.cs')
-rw-r--r--trunk/Examples/test-suite/csharp/li_boost_shared_ptr_bits_runme.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/csharp/li_boost_shared_ptr_bits_runme.cs b/trunk/Examples/test-suite/csharp/li_boost_shared_ptr_bits_runme.cs
new file mode 100644
index 000000000..2b8c84e1b
--- /dev/null
+++ b/trunk/Examples/test-suite/csharp/li_boost_shared_ptr_bits_runme.cs
@@ -0,0 +1,17 @@
+using System;
+using li_boost_shared_ptr_bitsNamespace;
+
+public class runme
+{
+ static void Main()
+ {
+ VectorIntHolder v = new VectorIntHolder();
+ v.Add(new IntHolder(11));
+ v.Add(new IntHolder(22));
+ v.Add(new IntHolder(33));
+
+ int sum = li_boost_shared_ptr_bits.sum(v);
+ if (sum != 66)
+ throw new ApplicationException("sum is wrong");
+ }
+}