Move more common bithandling code into I/I32/I64 modules.
[ocaml-bitstring.git] / tests / 10_constr2.ml
diff --git a/tests/10_constr2.ml b/tests/10_constr2.ml
new file mode 100644 (file)
index 0000000..31af87f
--- /dev/null
@@ -0,0 +1,12 @@
+(* Test a simple constructor.
+ * $Id: 10_constr2.ml,v 1.1 2008-04-02 11:06:07 rjones Exp $
+ *)
+
+let version = 1 ;;
+let data = 10 ;;
+let bits =
+  BITSTRING
+    version : 4;
+    data : 12 ;;
+
+Bitmatch.hexdump_bitstring stdout bits ;;