test: C trigraph

add a test file that checks that C trigraphs in string literals are not
miscompiled.
This commit is contained in:
Joachim Breitner 2023-11-06 10:59:35 +01:00 committed by Sebastian Ullrich
parent b1f2fcf758
commit 995725b256
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,12 @@
/-! Tests that C trigraphs are not actually interpreted -/
def main := do
IO.println "??("
IO.println "??)"
IO.println "??<"
IO.println "??>"
IO.println "??="
IO.println "??/"
IO.println "??'"
IO.println "??!"
IO.println "??-"

View file

@ -0,0 +1,9 @@
??(
??)
??<
??>
??=
??/
??'
??!
??-