This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
19
unikernel/duniverse/ppxlib/test/502_pexpfun/run.t
Normal file
19
unikernel/duniverse/ppxlib/test/502_pexpfun/run.t
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
We want to make sure that migrations from 5.2 to previous versions still
|
||||
produce valid location ranges between parent and child.
|
||||
|
||||
$ cat > test.ml << EOF
|
||||
> let make ~foo ~bar = foo ^ bar
|
||||
> EOF
|
||||
|
||||
We run a custom driver that will read our ast, migrate it back to 5.01, and
|
||||
check that the locations are valid (the parent range is larger than the child
|
||||
range).
|
||||
|
||||
$ ./driver.exe -locations-check --impl test.ml -o ignore.ml
|
||||
|
||||
Locations should also be well formed for Pparam_newtype
|
||||
$ cat > test.ml << EOF
|
||||
> let make (type t) (type u) foo = foo
|
||||
> EOF
|
||||
|
||||
$ ./driver.exe -locations-check --impl test.ml -o ignore.ml
|
||||
Loading…
Add table
Add a link
Reference in a new issue