Created
September 3, 2026 14:16
-
-
Save RubenKelevra/a74943c06b73ac1e490eef4b7d0a925b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ==> Starting check()... | |
| File "test/comments.ref", line 1, characters 0-0: | |
| --- test/comments.ref | |
| +++ test/comments.out | |
| @@ -1,8 +1,8 @@ | |
| -# 1 "comments.cppo" | |
| +# 1 "./comments.cppo" | |
| (* '"' *) | |
| -# 5 "comments.cppo" | |
| +# 5 "./comments.cppo" | |
| (* "*)" | |
| #define DONT_TOUCH_THIS | |
| *) | |
| File "test/cond.ref", line 1, characters 0-0: | |
| --- test/cond.ref | |
| +++ test/cond.out | |
| @@ -1,17 +1,17 @@ | |
| -# 7 "cond.cppo" | |
| +# 7 "./cond.cppo" | |
| banana | |
| -# 17 "cond.cppo" | |
| +# 17 "./cond.cppo" | |
| apricot | |
| -# 28 "cond.cppo" | |
| +# 28 "./cond.cppo" | |
| nest | |
| -# 45 "cond.cppo" | |
| +# 45 "./cond.cppo" | |
| sea urchin | |
| File "test/tuple.ref", line 1, characters 0-0: | |
| --- test/tuple.ref | |
| +++ test/tuple.out | |
| @@ -1,20 +1,20 @@ | |
| -# 5 "tuple.cppo" | |
| +# 5 "./tuple.cppo" | |
| pistachios | |
| -# 9 "tuple.cppo" | |
| +# 9 "./tuple.cppo" | |
| trees | |
| -# 16 "tuple.cppo" | |
| +# 16 "./tuple.cppo" | |
| waves | |
| -# 28 "tuple.cppo" | |
| +# 28 "./tuple.cppo" | |
| bees | |
| -# 34 "tuple.cppo" | |
| +# 34 "./tuple.cppo" | |
| steamboat | |
| File "test/loc.ref", line 1, characters 0-0: | |
| --- test/loc.ref | |
| +++ test/loc.out | |
| @@ -1,21 +1,21 @@ | |
| -# 2 "loc.cppo" | |
| - "loc.cppo" 2 | |
| -# 3 "loc.cppo" | |
| +# 2 "./loc.cppo" | |
| + "./loc.cppo" 2 | |
| +# 3 "./loc.cppo" | |
| X( | |
| -# 3 "loc.cppo" | |
| - "loc.cppo" 3 | |
| -# 3 "loc.cppo" | |
| +# 3 "./loc.cppo" | |
| + "./loc.cppo" 3 | |
| +# 3 "./loc.cppo" | |
| ) | |
| X( | |
| -# 4 "loc.cppo" | |
| - "loc.cppo" 4 | |
| -# 4 "loc.cppo" | |
| +# 4 "./loc.cppo" | |
| + "./loc.cppo" 4 | |
| +# 4 "./loc.cppo" | |
| ) | |
| X(Y( | |
| -# 5 "loc.cppo" | |
| - "loc.cppo" 5 | |
| -# 5 "loc.cppo" | |
| +# 5 "./loc.cppo" | |
| + "./loc.cppo" 5 | |
| +# 5 "./loc.cppo" | |
| )) | |
| -# 8 "loc.cppo" | |
| - "loc.cppo" 8 | |
| +# 8 "./loc.cppo" | |
| + "./loc.cppo" 8 | |
| File "test/paren_arg.ref", line 1, characters 0-0: | |
| --- test/paren_arg.ref | |
| +++ test/paren_arg.out | |
| @@ -1,4 +1,4 @@ | |
| -# 2 "paren_arg.cppo" | |
| +# 2 "./paren_arg.cppo" | |
| <(1, (2))> < 34> | |
| -# 3 "paren_arg.cppo" | |
| +# 3 "./paren_arg.cppo" | |
| <(1 , (2 ))> < 34> | |
| File "test/version.ref", line 1, characters 0-0: | |
| --- test/version.ref | |
| +++ test/version.out | |
| @@ -1,42 +1,42 @@ | |
| -# 5 "version.cppo" | |
| +# 5 "./version.cppo" | |
| Cape buffalos | |
| -# 10 "version.cppo" | |
| +# 10 "./version.cppo" | |
| onion rings | |
| -# 16 "version.cppo" | |
| +# 16 "./version.cppo" | |
| major: | |
| -# 16 "version.cppo" | |
| +# 16 "./version.cppo" | |
| 123 | |
| -# 17 "version.cppo" | |
| +# 17 "./version.cppo" | |
| minor: | |
| -# 17 "version.cppo" | |
| +# 17 "./version.cppo" | |
| 05 | |
| -# 18 "version.cppo" | |
| +# 18 "./version.cppo" | |
| patch: | |
| -# 18 "version.cppo" | |
| +# 18 "./version.cppo" | |
| 2 | |
| -# 21 "version.cppo" | |
| +# 21 "./version.cppo" | |
| prerelease: | |
| -# 21 "version.cppo" | |
| +# 21 "./version.cppo" | |
| alpha.1 | |
| -# 27 "version.cppo" | |
| +# 27 "./version.cppo" | |
| build: | |
| -# 27 "version.cppo" | |
| +# 27 "./version.cppo" | |
| foo-2.1 | |
| -# 32 "version.cppo" | |
| +# 32 "./version.cppo" | |
| Coq: | |
| -# 32 "version.cppo" | |
| +# 32 "./version.cppo" | |
| (8, 13, 0) | |
| -# 34 "version.cppo" | |
| +# 34 "./version.cppo" | |
| OCaml pre-release: | |
| -# 34 "version.cppo" | |
| +# 34 "./version.cppo" | |
| alpha1 | |
| File "test/test.ref", line 1, characters 0-0: | |
| --- test/test.ref | |
| +++ test/test.out | |
| @@ -1,30 +1,30 @@ | |
| -# 1 "test.cppo" | |
| +# 1 "./test.cppo" | |
| (* comment *) | |
| -# 4 "test.cppo" | |
| +# 4 "./test.cppo" | |
| f(1) | |
| -# 6 "test.cppo" | |
| +# 6 "./test.cppo" | |
| 2+ 3.14 | |
| -# 8 "test.cppo" | |
| +# 8 "./test.cppo" | |
| 3+ 3.14 | |
| -# 13 "test.cppo" | |
| +# 13 "./test.cppo" | |
| "g" is not defined | |
| -# 18 "test.cppo" | |
| +# 18 "./test.cppo" | |
| b() | |
| -# 20 "test.cppo" | |
| +# 20 "./test.cppo" | |
| debug("a") | |
| debug("b") | |
| -# 33 "test.cppo" | |
| +# 33 "./test.cppo" | |
| success | |
| -# 45 "test.cppo" | |
| +# 45 "./test.cppo" | |
| "abc\ | |
| xyz | |
| @@ -33,53 +33,53 @@ | |
| 789 | |
| 456 *) | |
| -# 48 "test.cppo" | |
| +# 48 "./test.cppo" | |
| "a" "b" | |
| -# 51 "test.cppo" | |
| +# 51 "./test.cppo" | |
| aa ,bb 123 | |
| -# 54 "test.cppo" | |
| +# 54 "./test.cppo" | |
| , ) ( | |
| -# 56 "test.cppo" | |
| +# 56 "./test.cppo" | |
| blah #define xyz | |
| -# 63 "test.cppo" | |
| +# 63 "./test.cppo" | |
| _ _ (* the 2 underscores should be space-separated *) | |
| -# 67 "test.cppo" | |
| +# 67 "./test.cppo" | |
| + + (* there should be some space between the pluses *) | |
| -# 69 "test.cppo" | |
| +# 69 "./test.cppo" | |
| (* (* nested comment with single single quote: ' *) "*)" *) | |
| -# 72 "test.cppo" | |
| +# 72 "./test.cppo" | |
| obj | |
| # define | |
| -# 73 "test.cppo" | |
| +# 73 "./test.cppo" | |
| -# 75 "test.cppo" | |
| +# 75 "./test.cppo" | |
| ' (* lone single quote *) | |
| -# 78 "test.cppo" | |
| +# 78 "./test.cppo" | |
| 1 | |
| -# 78 "test.cppo" | |
| +# 78 "./test.cppo" | |
| = 1 | |
| -# 82 "test.cppo" | |
| +# 82 "./test.cppo" | |
| # | |
| -# 82 "test.cppo" | |
| +# 82 "./test.cppo" | |
| is # | |
| -# 98 "test.cppo" | |
| +# 98 "./test.cppo" | |
| good maths | |
| -# 117 "test.cppo" | |
| +# 117 "./test.cppo" | |
| let g x = | |
| printf "call %s\n%!" "g"; | |
| @@ -89,34 +89,34 @@ | |
| ;; | |
| -# 124 "test.cppo" | |
| +# 124 "./test.cppo" | |
| class foo () = | |
| object | |
| -# 126 "test.cppo" | |
| +# 126 "./test.cppo" | |
| val mutable field_1 : int option | |
| method get_field_1 = field_1 | |
| method set_field_1 x = field_1 <- Some x | |
| -# 127 "test.cppo" | |
| +# 127 "./test.cppo" | |
| val mutable field_2 : string option | |
| method get_field_2 = field_2 | |
| method set_field_2 x = field_2 <- Some x | |
| -# 128 "test.cppo" | |
| +# 128 "./test.cppo" | |
| end | |
| -# 135 "test.cppo" | |
| +# 135 "./test.cppo" | |
| (if !debug then | |
| - eprintf "[debug] %s %i: " "test.cppo" 135 ; | |
| + eprintf "[debug] %s %i: " "./test.cppo" 135 ; | |
| eprintf "test1 %i %i" x y; | |
| eprintf "\n") | |
| -# 136 "test.cppo" | |
| +# 136 "./test.cppo" | |
| (if !debug then | |
| - eprintf "[debug] %s %i: " "test.cppo" 136 ; | |
| + eprintf "[debug] %s %i: " "./test.cppo" 136 ; | |
| eprintf "test2 %i" x; | |
| eprintf "\n") | |
| @@ -125,7 +125,7 @@ | |
| # 1 "incl2.cppo" | |
| ok | |
| -# 139 "test.cppo" | |
| +# 139 "./test.cppo" | |
| # 123456 | |
| File "test/unmatched.ref", line 1, characters 0-0: | |
| --- test/unmatched.ref | |
| +++ test/unmatched.out | |
| @@ -1,15 +1,15 @@ | |
| -# 4 "unmatched.cppo" | |
| +# 4 "./unmatched.cppo" | |
| let a = 1 in | |
| let b = 2 in | |
| (a || | |
| -# 9 "unmatched.cppo" | |
| +# 9 "./unmatched.cppo" | |
| b) | |
| -# 12 "unmatched.cppo" | |
| +# 12 "./unmatched.cppo" | |
| (1 + (2+3)) | |
| -# 13 "unmatched.cppo" | |
| +# 13 "./unmatched.cppo" | |
| ) | |
| ( | |
| File "test/lexical.ref", line 1, characters 0-0: | |
| --- test/lexical.ref | |
| +++ test/lexical.out | |
| @@ -1,36 +1,36 @@ | |
| -# 1 "lexical.cppo" | |
| +# 1 "./lexical.cppo" | |
| (* This test shows that the definition of BAR captures the original | |
| definition of FOO, so even if FOO is redefined, the expansion of | |
| BAR does not change. *) | |
| -# 8 "lexical.cppo" | |
| +# 8 "./lexical.cppo" | |
| "new definition" | |
| -# 8 "lexical.cppo" | |
| +# 8 "./lexical.cppo" | |
| (* expands to "new definition" *) | |
| -# 9 "lexical.cppo" | |
| +# 9 "./lexical.cppo" | |
| "original definition" | |
| -# 9 "lexical.cppo" | |
| +# 9 "./lexical.cppo" | |
| (* expands to "original definition" *) | |
| (* This test shows that a formal parameter can shadow a previously | |
| defined macro. *) | |
| -# 14 "lexical.cppo" | |
| +# 14 "./lexical.cppo" | |
| 42 | |
| -# 14 "lexical.cppo" | |
| +# 14 "./lexical.cppo" | |
| (* expands to 42 *) | |
| (* This test shows that two formal parameters can have the same | |
| name. In that case, the second parameter shadows the first one. *) | |
| -# 19 "lexical.cppo" | |
| +# 19 "./lexical.cppo" | |
| 23+23 | |
| -# 19 "lexical.cppo" | |
| +# 19 "./lexical.cppo" | |
| (* expands to 23+23 *) | |
| (* This test shows that it is OK to pass an empty argument to a macro | |
| that expects one parameter. This is interpreted as passing one | |
| empty argument. *) | |
| -# 25 "lexical.cppo" | |
| +# 25 "./lexical.cppo" | |
| show(42) | |
| -# 26 "lexical.cppo" | |
| +# 26 "./lexical.cppo" | |
| show("23") | |
| -# 27 "lexical.cppo" | |
| +# 27 "./lexical.cppo" | |
| show() | |
| File "test/ext.ref", line 1, characters 0-0: | |
| --- test/ext.ref | |
| +++ test/ext.out | |
| @@ -1,9 +1,9 @@ | |
| -# 1 "ext.cppo" | |
| +# 1 "./ext.cppo" | |
| hello | |
| nop | |
| #raqrkg | |
| qrs | |
| -# 7 "ext.cppo" | |
| +# 7 "./ext.cppo" | |
| goodbye | |
| # 9 | |
| @@ -21,7 +21,7 @@ | |
| *) | |
| (* | |
| Environment variables: | |
| - CPPO_FILE=ext.cppo | |
| + CPPO_FILE=./ext.cppo | |
| CPPO_FIRST_LINE=9 | |
| CPPO_LAST_LINE=11 | |
| *) | |
| File "test/scope.ref", line 1, characters 0-0: | |
| --- test/scope.ref | |
| +++ test/scope.out | |
| @@ -1,20 +1,20 @@ | |
| -# 1 "scope.cppo" | |
| +# 1 "./scope.cppo" | |
| (* This example shows that the definition of FOO that is nested inside | |
| the (multi-line) definition of BAR affects only the body of the | |
| definition of BAR. It does not affect the text that follows a call | |
| to BAR. So, a multi-line macro definition acts as a scope delimiter. *) | |
| -# 11 "scope.cppo" | |
| +# 11 "./scope.cppo" | |
| "definition of FOO at the top level" | |
| -# 11 "scope.cppo" | |
| +# 11 "./scope.cppo" | |
| (* expands to "definition of FOO at the top level" *) | |
| -# 12 "scope.cppo" | |
| +# 12 "./scope.cppo" | |
| "definition of FOO inside BAR" (* expands to "definition of FOO inside BAR" *) | |
| -# 13 "scope.cppo" | |
| +# 13 "./scope.cppo" | |
| "definition of FOO at the top level" | |
| -# 13 "scope.cppo" | |
| +# 13 "./scope.cppo" | |
| (* expands to "definition of FOO at the top level" *) | |
| (* If one wishes to delimit a scope, without actually defining a macro, | |
| @@ -22,15 +22,15 @@ | |
| -# 20 "scope.cppo" | |
| +# 20 "./scope.cppo" | |
| "first definition of HELLO" | |
| -# 20 "scope.cppo" | |
| +# 20 "./scope.cppo" | |
| (* expands to "first definition of HELLO" *) | |
| -# 24 "scope.cppo" | |
| +# 24 "./scope.cppo" | |
| "second definition of HELLO" | |
| -# 24 "scope.cppo" | |
| +# 24 "./scope.cppo" | |
| (* expands to "second definition of HELLO" *) | |
| HELLO (* this does not expand *) | |
| @@ -38,74 +38,74 @@ | |
| #def DUMMY ... #enddef DUMMY #undef DUMMY | |
| but this is a bit unnatural. *) | |
| -# 36 "scope.cppo" | |
| +# 36 "./scope.cppo" | |
| "definition of HELLO inside the scope" (* expands to "definition of HELLO inside the scope" *) | |
| -# 38 "scope.cppo" | |
| +# 38 "./scope.cppo" | |
| HELLO (* this does not expand *) | |
| (* Another simple example. *) | |
| -# 44 "scope.cppo" | |
| +# 44 "./scope.cppo" | |
| let x = | |
| -# 44 "scope.cppo" | |
| +# 44 "./scope.cppo" | |
| "I am defined" | |
| -# 44 "scope.cppo" | |
| +# 44 "./scope.cppo" | |
| (* expands to "I am defined" *) | |
| -# 47 "scope.cppo" | |
| +# 47 "./scope.cppo" | |
| let y = | |
| -# 47 "scope.cppo" | |
| +# 47 "./scope.cppo" | |
| 42 | |
| -# 47 "scope.cppo" | |
| +# 47 "./scope.cppo" | |
| (* expands to 42 *) | |
| (* Check that the effect of #undef is also local. | |
| This example relies on the above definition of HI. *) | |
| -# 54 "scope.cppo" | |
| +# 54 "./scope.cppo" | |
| let qwd = HI (* HI is not recognized as a macro and expands to itself *) | |
| let z = | |
| -# 56 "scope.cppo" | |
| +# 56 "./scope.cppo" | |
| 42 | |
| -# 56 "scope.cppo" | |
| +# 56 "./scope.cppo" | |
| (* expands to 42 *) | |
| (* Scopes can be nested. *) | |
| -# 61 "scope.cppo" | |
| +# 61 "./scope.cppo" | |
| let x = | |
| -# 61 "scope.cppo" | |
| +# 61 "./scope.cppo" | |
| 0 | |
| -# 61 "scope.cppo" | |
| +# 61 "./scope.cppo" | |
| (* expands to 0 *) | |
| -# 65 "scope.cppo" | |
| +# 65 "./scope.cppo" | |
| let y = | |
| -# 65 "scope.cppo" | |
| +# 65 "./scope.cppo" | |
| 1 | |
| -# 65 "scope.cppo" | |
| +# 65 "./scope.cppo" | |
| (* expands to 1 *) | |
| -# 69 "scope.cppo" | |
| +# 69 "./scope.cppo" | |
| let z = | |
| -# 69 "scope.cppo" | |
| +# 69 "./scope.cppo" | |
| 2 | |
| -# 69 "scope.cppo" | |
| +# 69 "./scope.cppo" | |
| (* expands to 2 *) | |
| let _ = | |
| -# 71 "scope.cppo" | |
| +# 71 "./scope.cppo" | |
| 1 | |
| -# 71 "scope.cppo" | |
| +# 71 "./scope.cppo" | |
| (* expands to 1 *) | |
| let _ = | |
| -# 73 "scope.cppo" | |
| +# 73 "./scope.cppo" | |
| 0 | |
| -# 73 "scope.cppo" | |
| +# 73 "./scope.cppo" | |
| (* expands to 0 *) | |
| (* Another example of nesting. *) | |
| @@ -113,19 +113,19 @@ | |
| -# 81 "scope.cppo" | |
| +# 81 "./scope.cppo" | |
| let message1 = | |
| -# 81 "scope.cppo" | |
| +# 81 "./scope.cppo" | |
| "Hello, " | |
| -# 81 "scope.cppo" | |
| +# 81 "./scope.cppo" | |
| ^ | |
| -# 81 "scope.cppo" | |
| +# 81 "./scope.cppo" | |
| "man" | |
| -# 83 "scope.cppo" | |
| +# 83 "./scope.cppo" | |
| (* Here, MAN is no longer defined, but HELLO still is. *) | |
| let message2 = | |
| -# 84 "scope.cppo" | |
| +# 84 "./scope.cppo" | |
| "Hello, " | |
| -# 84 "scope.cppo" | |
| +# 84 "./scope.cppo" | |
| ^ "world" | |
| File "test/higher_order_macros.ref", line 1, characters 0-0: | |
| --- test/higher_order_macros.ref | |
| +++ test/higher_order_macros.out | |
| @@ -1,27 +1,27 @@ | |
| -# 1 "higher_order_macros.cppo" | |
| +# 1 "./higher_order_macros.cppo" | |
| (* This macro application combinator provides call-by-value | |
| semantics: the actual argument is evaluated up front and | |
| its value is bound to a variable, which is passed as an | |
| argument to the macro [F]. *) | |
| -# 7 "higher_order_macros.cppo" | |
| +# 7 "./higher_order_macros.cppo" | |
| (* Some trivial tests. *) | |
| -# 10 "higher_order_macros.cppo" | |
| +# 10 "./higher_order_macros.cppo" | |
| let forty_one = | |
| -# 10 "higher_order_macros.cppo" | |
| +# 10 "./higher_order_macros.cppo" | |
| (let __x = ( 41) in __x ) | |
| -# 11 "higher_order_macros.cppo" | |
| +# 11 "./higher_order_macros.cppo" | |
| let forty_two = | |
| -# 11 "higher_order_macros.cppo" | |
| +# 11 "./higher_order_macros.cppo" | |
| (let __x = ( 42 ) in __x ) | |
| -# 13 "higher_order_macros.cppo" | |
| +# 13 "./higher_order_macros.cppo" | |
| (* A [for]-loop macro. *) | |
| -# 20 "higher_order_macros.cppo" | |
| +# 20 "./higher_order_macros.cppo" | |
| (* A [for]-loop macro that performs unrolling. *) | |
| -# 35 "higher_order_macros.cppo" | |
| +# 35 "./higher_order_macros.cppo" | |
| (* In some of the examples that follow, #scope ... #endscope is used | |
| to avoid the need to #undefine local macros such as BODY and F. *) | |
| @@ -29,19 +29,19 @@ | |
| let iter f a = | |
| -# 42 "higher_order_macros.cppo" | |
| +# 42 "./higher_order_macros.cppo" | |
| ( | |
| for __index = 0 to Array.length a-1 do | |
| (f a.(__index)) | |
| done | |
| ) | |
| -# 45 "higher_order_macros.cppo" | |
| +# 45 "./higher_order_macros.cppo" | |
| (* Iteration over an array, with an unrolled loop. *) | |
| let unrolled_iter f a = | |
| -# 49 "higher_order_macros.cppo" | |
| +# 49 "./higher_order_macros.cppo" | |
| ( | |
| let __finish = ( Array.length a) in | |
| let __index = ref (0) in | |
| @@ -56,25 +56,25 @@ | |
| done | |
| ) | |
| -# 52 "higher_order_macros.cppo" | |
| +# 52 "./higher_order_macros.cppo" | |
| (* Printing an array, with a normal loop. *) | |
| let print_int_array a = | |
| -# 55 "higher_order_macros.cppo" | |
| +# 55 "./higher_order_macros.cppo" | |
| ( | |
| for __index = 0 to Array.length a-1 do | |
| Printf.printf "%d" a.(__index) | |
| done | |
| ) | |
| -# 57 "higher_order_macros.cppo" | |
| +# 57 "./higher_order_macros.cppo" | |
| (* A higher-order macro that produces a definition of [iter], | |
| and accepts an arbitrary definition of the macro [LOOP]. *) | |
| -# 65 "higher_order_macros.cppo" | |
| +# 65 "./higher_order_macros.cppo" | |
| (* Some noise, which does not affect the above definitions. *) | |
| -# 68 "higher_order_macros.cppo" | |
| +# 68 "./higher_order_macros.cppo" | |
| let iter f a = | |
| ( | |
| @@ -82,7 +82,7 @@ | |
| (f a.(__index)) | |
| done | |
| ) | |
| -# 69 "higher_order_macros.cppo" | |
| +# 69 "./higher_order_macros.cppo" | |
| let unrolled_iter f a = | |
| ( | |
| File "test/include_define_on_last_line.ref", line 1, characters 0-0: | |
| --- test/include_define_on_last_line.ref | |
| +++ test/include_define_on_last_line.out | |
| @@ -1,7 +1,7 @@ | |
| # 1 "define_on_last_line.cppo" | |
| (* This #define is NOT ended by a new line, but is nevertheless accepted. *) | |
| -# 2 "include_define_on_last_line.cppo" | |
| +# 2 "./include_define_on_last_line.cppo" | |
| (* Check that the definition of TWICE has been accepted: *) | |
| let f x = | |
| -# 3 "include_define_on_last_line.cppo" | |
| +# 3 "./include_define_on_last_line.cppo" | |
| x + x | |
| File "test/expects_no_args.ref", line 1, characters 0-0: | |
| --- test/expects_no_args.ref | |
| +++ test/expects_no_args.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "expects_no_args.cppo", line 3, characters 4-11 | |
| +Error: File "./expects_no_args.cppo", line 3, characters 4-11 | |
| Error: "FOO" expects 0 argument but is applied to 1 argument. | |
| File "test/def.ref", line 1, characters 0-0: | |
| --- test/def.ref | |
| +++ test/def.out | |
| @@ -1,33 +1,33 @@ | |
| -# 1 "def.cppo" | |
| +# 1 "./def.cppo" | |
| (* This macro application combinator provides call-by-value | |
| semantics: the actual argument is evaluated up front and | |
| its value is bound to a variable, which is passed as an | |
| argument to the macro [F]. *) | |
| -# 10 "def.cppo" | |
| +# 10 "./def.cppo" | |
| (* Some trivial tests. *) | |
| -# 13 "def.cppo" | |
| +# 13 "./def.cppo" | |
| let forty_one = | |
| -# 13 "def.cppo" | |
| +# 13 "./def.cppo" | |
| (let __x = ( 41) in __x ) | |
| (* Multiple lines permitted; no backslash required. *) | |
| -# 14 "def.cppo" | |
| +# 14 "./def.cppo" | |
| let forty_two = | |
| -# 14 "def.cppo" | |
| +# 14 "./def.cppo" | |
| (let __x = ( 42 ) in __x ) | |
| (* Multiple lines permitted; no backslash required. *) | |
| -# 16 "def.cppo" | |
| +# 16 "./def.cppo" | |
| (* A [for]-loop macro. *) | |
| -# 25 "def.cppo" | |
| +# 25 "./def.cppo" | |
| (* A [for]-loop macro that performs unrolling. *) | |
| -# 47 "def.cppo" | |
| +# 47 "./def.cppo" | |
| (* In the examples that follow, #scope ... #endscope is used to | |
| avoid the need to #undefine local macros such as BODY and F. *) | |
| @@ -35,7 +35,7 @@ | |
| let iter f a = | |
| -# 54 "def.cppo" | |
| +# 54 "./def.cppo" | |
| ( | |
| for __index = 0 to Array.length a-1 do | |
| @@ -44,12 +44,12 @@ | |
| ) | |
| -# 57 "def.cppo" | |
| +# 57 "./def.cppo" | |
| (* Iteration over an array, with an unrolled loop. *) | |
| let unrolled_iter f a = | |
| -# 61 "def.cppo" | |
| +# 61 "./def.cppo" | |
| ( | |
| (* #define can be nested inside #def. *) | |
| (* #def can be nested inside #def. *) | |
| @@ -80,12 +80,12 @@ | |
| ) | |
| -# 64 "def.cppo" | |
| +# 64 "./def.cppo" | |
| (* Printing an array, with a normal loop. *) | |
| let print_int_array a = | |
| -# 68 "def.cppo" | |
| +# 68 "./def.cppo" | |
| ( | |
| for __index = 0 to Array.length a-1 do | |
| @@ -94,14 +94,14 @@ | |
| ) | |
| -# 71 "def.cppo" | |
| +# 71 "./def.cppo" | |
| (* A higher-order macro that produces a definition of [iter], | |
| and accepts an arbitrary definition of the macro [LOOP]. *) | |
| -# 81 "def.cppo" | |
| +# 81 "./def.cppo" | |
| (* Some noise, which does not affect the above definitions. *) | |
| -# 84 "def.cppo" | |
| +# 84 "./def.cppo" | |
| let iter f a = | |
| @@ -113,7 +113,7 @@ | |
| ) | |
| -# 85 "def.cppo" | |
| +# 85 "./def.cppo" | |
| let unrolled_iter f a = | |
| @@ -148,5 +148,5 @@ | |
| -# 87 "def.cppo" | |
| +# 87 "./def.cppo" | |
| (* Just because we can, undefine BODY. *) | |
| File "test/arity_mismatch.ref", line 1, characters 0-0: | |
| --- test/arity_mismatch.ref | |
| +++ test/arity_mismatch.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "arity_mismatch.cppo", line 3, characters 0-10 | |
| +Error: File "./arity_mismatch.cppo", line 3, characters 0-10 | |
| Error: "INCR" expects 1 argument but is applied to 2 arguments. | |
| File "test/applied_to_none.ref", line 1, characters 0-0: | |
| --- test/applied_to_none.ref | |
| +++ test/applied_to_none.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "applied_to_none.cppo", line 3, characters 0-3 | |
| +Error: File "./applied_to_none.cppo", line 3, characters 0-3 | |
| Error: "FOO" expects 1 argument but is applied to 0 argument. | |
| File "test/already_defined.ref", line 1, characters 0-0: | |
| --- test/already_defined.ref | |
| +++ test/already_defined.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "already_defined.cppo", line 3, characters 0-17 | |
| +Error: File "./already_defined.cppo", line 3, characters 0-17 | |
| Error: "FOO" is already defined | |
| File "test/comment_in_formals.ref", line 1, characters 0-0: | |
| --- test/comment_in_formals.ref | |
| +++ test/comment_in_formals.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "comment_in_formals.cppo", line 1, characters 15-16 | |
| +Error: File "./comment_in_formals.cppo", line 1, characters 15-16 | |
| Error: Invalid formal parameter: expected an identifier | |
| File "test/arity_mismatch_indirect.ref", line 1, characters 0-0: | |
| --- test/arity_mismatch_indirect.ref | |
| +++ test/arity_mismatch_indirect.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "arity_mismatch_indirect.cppo", line 2, characters 26-27 | |
| +Error: File "./arity_mismatch_indirect.cppo", line 2, characters 26-27 | |
| Error: "F" expects 1 argument but is applied to 0 argument. | |
| File "test/at_least_one_arg.ref", line 1, characters 0-0: | |
| --- test/at_least_one_arg.ref | |
| +++ test/at_least_one_arg.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "at_least_one_arg.cppo", line 2, characters 12-13 | |
| +Error: File "./at_least_one_arg.cppo", line 2, characters 12-13 | |
| Error: A macro must have at least one formal parameter | |
| File "test/expect_ident.ref", line 1, characters 0-0: | |
| --- test/expect_ident.ref | |
| +++ test/expect_ident.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "expect_ident.cppo", line 4, characters 6-12 | |
| +Error: File "./expect_ident.cppo", line 4, characters 6-12 | |
| Error: The name of a macro is expected in this position | |
| File "test/expect_ident_empty.ref", line 1, characters 0-0: | |
| --- test/expect_ident_empty.ref | |
| +++ test/expect_ident_empty.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "expect_ident_empty.cppo", line 4, characters 6-6 | |
| +Error: File "./expect_ident_empty.cppo", line 4, characters 6-6 | |
| Error: The name of a macro is expected in this position | |
| File "test/shape_mismatch.ref", line 1, characters 0-0: | |
| --- test/shape_mismatch.ref | |
| +++ test/shape_mismatch.err | |
| @@ -1,3 +1,3 @@ | |
| -Error: File "shape_mismatch.cppo", line 3, characters 6-9 | |
| +Error: File "./shape_mismatch.cppo", line 3, characters 6-9 | |
| Error: A macro of type [.] was expected, but | |
| a macro of type . was provided | |
| File "test/int_expansion_error.ref", line 1, characters 0-0: | |
| --- test/int_expansion_error.ref | |
| +++ test/int_expansion_error.err | |
| @@ -1,4 +1,4 @@ | |
| -Error: File "int_expansion_error.cppo", line 2, characters 4-7 | |
| +Error: File "./int_expansion_error.cppo", line 2, characters 4-7 | |
| Error: Variable FOO found in cppo boolean expression must expand | |
| into an int literal, into a tuple of int literals, | |
| or into a variable with the same properties. | |
| File "test/undefined.ref", line 1, characters 0-0: | |
| --- test/undefined.ref | |
| +++ test/undefined.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "undefined.cppo", line 2, characters 6-9 | |
| +Error: File "./undefined.cppo", line 2, characters 6-9 | |
| Error: The macro 'FOO' is not defined | |
| File "test/extraneous_enddef.ref", line 1, characters 0-0: | |
| --- test/extraneous_enddef.ref | |
| +++ test/extraneous_enddef.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "extraneous_enddef.cppo", line 4, characters 0-8 | |
| +Error: File "./extraneous_enddef.cppo", line 4, characters 0-8 | |
| Error: syntax error | |
| File "test/missing_enddef.ref", line 1, characters 0-0: | |
| --- test/missing_enddef.ref | |
| +++ test/missing_enddef.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "missing_enddef.cppo", line 3, characters 0-13 | |
| +Error: File "./missing_enddef.cppo", line 3, characters 0-13 | |
| Error: This #def is never closed: perhaps #enddef is missing | |
| File "test/missing_endscope.ref", line 1, characters 0-0: | |
| --- test/missing_endscope.ref | |
| +++ test/missing_endscope.err | |
| @@ -1,2 +1,2 @@ | |
| -Error: File "missing_endscope.cppo", line 3, characters 0-6 | |
| +Error: File "./missing_endscope.cppo", line 3, characters 0-6 | |
| Error: This #scope is never closed: perhaps #endscope is missing | |
| ==> ERROR: A failure occurred in check(). | |
| Aborting... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment