1
0
forked from alex-eg/sex

add `comments' test program

This commit is contained in:
2026-09-14 15:50:05 +03:00
parent d83ee32f12
commit 0db4a11a2b

View File

@@ -0,0 +1,13 @@
(input)
(output "start" "end")
(return 0)
;;; A top-level comment, preserved into the generated C.
(include stdio.h)
;; Another top-level comment, right before the function.
(pub fn main () int
;; a comment in statement position
(puts "start")
(puts "end") ; a trailing comment after a statement
(return 0))