Skip to content

Commit ec56b83

Browse files
committed
Add a test for the size of module type of expressions
1 parent b3eeab2 commit ec56b83

File tree

18 files changed

+134
-0
lines changed

18 files changed

+134
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
set -ex
3+
ocamlc -c m1.mli -bin-annot
4+
ocamlc -c m2.mli -bin-annot
5+
ocamlc -c m3.mli -bin-annot
6+
ocamlc -c m4.mli -bin-annot
7+
ocamlc -c m5.mli -bin-annot
8+
ocamlc -c m6.mli -bin-annot
9+
ocamlc -c m7.mli -bin-annot
10+
ocamlc -c m8.mli -bin-annot
11+
ocamlc -c m9.mli -bin-annot
12+
ocamlc -c m10.mli -bin-annot
13+
ocamlc -c m11.mli -bin-annot
14+
ocamlc -c m12.mli -bin-annot
15+
ocamlc -c m13.mli -bin-annot
16+
ocamlc -c m14.mli -bin-annot
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
for ((i=2; i<15; i++)); do echo "module type M = module type of M$((i-1)) with module N = M1.T" > m$i.mli; echo "module N : sig type t end" >> m$i.mli; done
3+
4+
echo "#!/bin/sh" > compile.sh
5+
echo "set -ex" >> compile.sh
6+
for ((i=1; i<15; i++)); do echo "ocamlc -c m$i.mli -bin-annot" >> compile.sh; done
7+
8+
echo "#!/bin/sh" > odoc.sh
9+
echo "set -ex" >> odoc.sh
10+
for ((i=1; i<15; i++)); do echo "odoc compile -I . m$i.cmti" >> odoc.sh; done
11+
12+
chmod +x compile.sh odoc.sh
13+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module type M = sig
2+
type t
3+
end
4+
5+
module N : sig type t end
6+
module T : sig type t type u end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module type M = module type of M9 with module N = M1.T
2+
module N : sig type t end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module type M = module type of M10 with module N = M1.T
2+
module N : sig type t end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module type M = module type of M11 with module N = M1.T
2+
module N : sig type t end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module type M = module type of M12 with module N = M1.T
2+
module N : sig type t end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module type M = module type of M13 with module N = M1.T
2+
module N : sig type t end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module type M = module type of M1 with module N = M1.T
2+
module N : sig type t end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module type M = module type of M2 with module N = M1.T
2+
module N : sig type t end

0 commit comments

Comments
 (0)