summaryrefslogtreecommitdiff
path: root/testsuite/compiler
diff options
context:
space:
mode:
author1Regina <46968488+1Regina@users.noreply.github.com>2021-06-11 12:14:49 +0800
committer1Regina <46968488+1Regina@users.noreply.github.com>2021-06-11 12:14:49 +0800
commitc4165714066eb4fa4ccea0debf2a736930c2a281 (patch)
treeb260d5e24f883168d255a1f49b8161afc2788c72 /testsuite/compiler
parenta1372040b4212be6af0b52a304de3054ec762619 (diff)
Rectified gold files
Diffstat (limited to 'testsuite/compiler')
-rw-r--r--testsuite/compiler/check/cyclic/abs-types/test3.gfs.gold0
-rw-r--r--testsuite/compiler/check/lincat-types/test.gfs.gold12
-rw-r--r--testsuite/compiler/check/lins/lins.gfs.gold80
-rw-r--r--testsuite/compiler/check/oper-definition/test.gfs.gold7
-rw-r--r--testsuite/compiler/check/strMatch/strMatch.gfs.gold1
-rw-r--r--testsuite/compiler/params/params.gfs.gold0
-rw-r--r--testsuite/compiler/typecheck/abstract/LetInDefAbs.gfs.gold15
-rw-r--r--testsuite/compiler/typecheck/abstract/LetInTypesAbs.gfs.gold4
-rw-r--r--testsuite/compiler/typecheck/abstract/test_A.gfs.gold7
-rw-r--r--testsuite/compiler/typecheck/abstract/test_B.gfs.gold7
-rw-r--r--testsuite/compiler/typecheck/abstract/test_C.gfs.gold7
-rw-r--r--testsuite/compiler/typecheck/concrete/test_A.gfs.gold10
12 files changed, 90 insertions, 60 deletions
diff --git a/testsuite/compiler/check/cyclic/abs-types/test3.gfs.gold b/testsuite/compiler/check/cyclic/abs-types/test3.gfs.gold
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/testsuite/compiler/check/cyclic/abs-types/test3.gfs.gold
diff --git a/testsuite/compiler/check/lincat-types/test.gfs.gold b/testsuite/compiler/check/lincat-types/test.gfs.gold
index 7e95ec7af..2e14e89e6 100644
--- a/testsuite/compiler/check/lincat-types/test.gfs.gold
+++ b/testsuite/compiler/check/lincat-types/test.gfs.gold
@@ -1,7 +1,9 @@
-testsuite/compiler/check/lincat-types/TestCnc.gf:3:
- Happened in linearization type of S
- type of PTrue
- expected: Type
- inferred: PBool
+testsuite/compiler/check/lincat-types/TestCnc.gf:
+ testsuite/compiler/check/lincat-types/TestCnc.gf:3:
+ Happened in linearization type of S
+ type of PTrue
+ expected: Type
+ inferred: Predef.PBool
+
diff --git a/testsuite/compiler/check/lins/lins.gfs.gold b/testsuite/compiler/check/lins/lins.gfs.gold
index 149912bde..798c91e43 100644
--- a/testsuite/compiler/check/lins/lins.gfs.gold
+++ b/testsuite/compiler/check/lins/lins.gfs.gold
@@ -1,39 +1,41 @@
-checking module linsCnc
- Warning: no linearization type for C, inserting default {s : Str}
- Warning: no linearization of test
-abstract lins {
- cat C Nat ;
- cat Float ;
- cat Int ;
- cat Nat ;
- cat String ;
- fun test : C zero ;
- fun zero : Nat ;
-}
-concrete linsCnc {
- productions
- C1 -> F2[]
- lindefs
- C0 -> F0
- C1 -> F1
- lin
- F0 := (S0) [lindef C]
- F1 := () [lindef Nat]
- F2 := () [zero]
- sequences
- S0 := {0,0}
- categories
- C := range [C0 .. C0]
- labels ["s"]
- Float := range [CFloat .. CFloat]
- labels ["s"]
- Int := range [CInt .. CInt]
- labels ["s"]
- Nat := range [C1 .. C1]
- labels []
- String := range [CString .. CString]
- labels ["s"]
- __gfVar := range [CVar .. CVar]
- labels [""]
- printnames
-}
+abstract lins {
+ cat C Nat ;
+ cat Float ;
+ cat Int ;
+ cat Nat ;
+ cat String ;
+ fun test : C zero ;
+ fun zero : Nat ;
+}
+concrete linsCnc {
+ productions
+ C1 -> F4[]
+ lindefs
+ C0 -> F0[CVar]
+ C1 -> F2[CVar]
+ linrefs
+ CVar -> F1[C0]
+ CVar -> F3[C1]
+ lin
+ F0 := (S2) ['lindef C']
+ F1 := (S1) ['lindef C']
+ F2 := () ['lindef Nat']
+ F3 := (S0) ['lindef Nat']
+ F4 := () [zero]
+ sequences
+ S0 :=
+ S1 := <0,0>
+ S2 := {0,0}
+ categories
+ C := range [C0 .. C0]
+ labels ["s"]
+ Float := range [CFloat .. CFloat]
+ labels ["s"]
+ Int := range [CInt .. CInt]
+ labels ["s"]
+ Nat := range [C1 .. C1]
+ labels []
+ String := range [CString .. CString]
+ labels ["s"]
+ printnames
+}
diff --git a/testsuite/compiler/check/oper-definition/test.gfs.gold b/testsuite/compiler/check/oper-definition/test.gfs.gold
index 240819c74..373ef17bd 100644
--- a/testsuite/compiler/check/oper-definition/test.gfs.gold
+++ b/testsuite/compiler/check/oper-definition/test.gfs.gold
@@ -1,5 +1,6 @@
-testsuite/compiler/check/oper-definition/Res.gf:3:
- Happened in operation my_oper
- No definition given to the operation
+testsuite/compiler/check/oper-definition/Res.gf:
+ testsuite/compiler/check/oper-definition/Res.gf:3:
+ Happened in operation my_oper
+ No definition given to the operation
diff --git a/testsuite/compiler/check/strMatch/strMatch.gfs.gold b/testsuite/compiler/check/strMatch/strMatch.gfs.gold
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/testsuite/compiler/check/strMatch/strMatch.gfs.gold
@@ -0,0 +1 @@
+
diff --git a/testsuite/compiler/params/params.gfs.gold b/testsuite/compiler/params/params.gfs.gold
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/testsuite/compiler/params/params.gfs.gold
diff --git a/testsuite/compiler/typecheck/abstract/LetInDefAbs.gfs.gold b/testsuite/compiler/typecheck/abstract/LetInDefAbs.gfs.gold
new file mode 100644
index 000000000..e4613af56
--- /dev/null
+++ b/testsuite/compiler/typecheck/abstract/LetInDefAbs.gfs.gold
@@ -0,0 +1,15 @@
+fun f : Int -> Int ;
+def f n = ? ;
+000 CHECK_ARGS 1
+ ALLOC 2
+ PUT_CLOSURE 001
+ SET_PAD
+ TUCK hp(0) 1
+ EVAL f tail(0)
+001 ALLOC 2
+ PUT_LIT 0
+ PUSH_FRAME
+ PUSH hp(0)
+ EVAL f update
+Probability: 1.0
+
diff --git a/testsuite/compiler/typecheck/abstract/LetInTypesAbs.gfs.gold b/testsuite/compiler/typecheck/abstract/LetInTypesAbs.gfs.gold
index 588b1643d..bbd381681 100644
--- a/testsuite/compiler/typecheck/abstract/LetInTypesAbs.gfs.gold
+++ b/testsuite/compiler/typecheck/abstract/LetInTypesAbs.gfs.gold
@@ -1 +1,3 @@
-fun f : (Int -> Int) -> Int -> Int
+fun f : (Int -> Int) -> Int -> Int ;
+Probability: 1.0
+
diff --git a/testsuite/compiler/typecheck/abstract/test_A.gfs.gold b/testsuite/compiler/typecheck/abstract/test_A.gfs.gold
index 821a4da2c..d99a5ec08 100644
--- a/testsuite/compiler/typecheck/abstract/test_A.gfs.gold
+++ b/testsuite/compiler/typecheck/abstract/test_A.gfs.gold
@@ -1,5 +1,6 @@
-testsuite/compiler/typecheck/abstract/A.gf:4:
- Happened in the category B
- Prod expected for function A instead of Type
+testsuite/compiler/typecheck/abstract/A.gf:
+ testsuite/compiler/typecheck/abstract/A.gf:4:
+ Happened in the category B
+ Prod expected for function A instead of Type
diff --git a/testsuite/compiler/typecheck/abstract/test_B.gfs.gold b/testsuite/compiler/typecheck/abstract/test_B.gfs.gold
index 1355ff7c5..3c923c6de 100644
--- a/testsuite/compiler/typecheck/abstract/test_B.gfs.gold
+++ b/testsuite/compiler/typecheck/abstract/test_B.gfs.gold
@@ -1,5 +1,6 @@
-testsuite/compiler/typecheck/abstract/B.gf:5:
- Happened in the type of function f
- Prod expected for function S instead of Type
+testsuite/compiler/typecheck/abstract/B.gf:
+ testsuite/compiler/typecheck/abstract/B.gf:5:
+ Happened in the type of function f
+ Prod expected for function S instead of Type
diff --git a/testsuite/compiler/typecheck/abstract/test_C.gfs.gold b/testsuite/compiler/typecheck/abstract/test_C.gfs.gold
index d055b11cd..d86aeda8b 100644
--- a/testsuite/compiler/typecheck/abstract/test_C.gfs.gold
+++ b/testsuite/compiler/typecheck/abstract/test_C.gfs.gold
@@ -1,5 +1,6 @@
-testsuite/compiler/typecheck/abstract/C.gf:6:
- Happened in the definition of function f
- {Int <> S}
+testsuite/compiler/typecheck/abstract/C.gf:
+ testsuite/compiler/typecheck/abstract/C.gf:6:
+ Happened in the definition of function f
+ {Int <> S}
diff --git a/testsuite/compiler/typecheck/concrete/test_A.gfs.gold b/testsuite/compiler/typecheck/concrete/test_A.gfs.gold
index 1bd4dffab..19b66a865 100644
--- a/testsuite/compiler/typecheck/concrete/test_A.gfs.gold
+++ b/testsuite/compiler/typecheck/concrete/test_A.gfs.gold
@@ -1,5 +1,9 @@
-testsuite/compiler/typecheck/concrete/A.gf:5:
- Happened in operation silly
- A function type is expected for a_Det instead of type Str
+testsuite/compiler/typecheck/concrete/A.gf:
+ testsuite/compiler/typecheck/concrete/A.gf:5:
+ Happened in operation silly
+ A function type is expected for a_Det instead of type Str
+
+ ** Maybe you gave too many arguments to a_Det
+