added some tests in the testsuite for the compiler

This commit is contained in:
krasimir
2009-09-14 12:17:57 +00:00
parent 62ef772a2c
commit 70fea39e2b
18 changed files with 76 additions and 4 deletions

View File

@@ -1,8 +1,6 @@
checking module linsCnc
Warning: no linearization type for C, inserting default {s : Str}
checking module linsCnc
Warning: no linearization type for C, inserting default {s : Str}
Warning: no linearization of test

View File

@@ -0,0 +1,5 @@
resource Res = {
oper my_oper : Str -> Str ;
}

View File

@@ -0,0 +1 @@
i testsuite/compiler/check/oper-definition/Res.gf

View File

@@ -0,0 +1,5 @@
checking module Res

View File

@@ -0,0 +1,8 @@
abstract A = {
cat A1; A2 ;
fun f1 : A1 ;
f2 : A1 ;
g : A2 ;
}

View File

@@ -0,0 +1,3 @@
abstract B = A - [A1] ** {
}

View File

@@ -0,0 +1,6 @@
abstract A = {
cat A ;
B (A 1) ;
}

View File

@@ -0,0 +1,7 @@
abstract B = {
cat S ;
fun f : S -> S 1 ;
}

View File

@@ -0,0 +1,8 @@
abstract C = {
cat S ;
fun f : S -> S ;
def f x = 1 ;
}

View File

@@ -0,0 +1 @@
i testsuite/compiler/typecheck/abstract/A.gf

View File

@@ -0,0 +1,5 @@
checking module A

View File

@@ -0,0 +1 @@
i testsuite/compiler/typecheck/abstract/B.gf

View File

@@ -0,0 +1,5 @@
checking module B

View File

@@ -0,0 +1 @@
i testsuite/compiler/typecheck/abstract/C.gf

View File

@@ -0,0 +1,5 @@
checking module C

View File

@@ -0,0 +1,7 @@
resource A = {
oper a_Det : Str = "a" ;
silly : Str = a_Det "X" ;
}

View File

@@ -0,0 +1 @@
i testsuite/compiler/typecheck/concrete/A.gf

View File

@@ -0,0 +1,5 @@
checking module A