This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
12
unikernel/duniverse/cppo/test/missing_enddef.cppo
Normal file
12
unikernel/duniverse/cppo/test/missing_enddef.cppo
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(* A common problem: *)
|
||||
|
||||
#def TWICE(e)
|
||||
e + e
|
||||
(* missing #enddef here *)
|
||||
|
||||
let f x =
|
||||
TWICE(x)
|
||||
|
||||
(* The error is detected by the parser at the end of the file,
|
||||
but we are able to report the location of the #def as the
|
||||
source of the problem. *)
|
||||
Loading…
Add table
Add a link
Reference in a new issue