From aff3cbbaa8b10abf938c7d2bb2e330ab85bf7ef4 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Mon, 29 Oct 2012 14:36:05 +0100 Subject: [PATCH] di/trigraph testcase --- testsuite/Makefile | 8 +++++++- testsuite/ngraphs/expected | 2 ++ testsuite/ngraphs/main.qc | 6 ++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 testsuite/ngraphs/expected create mode 100644 testsuite/ngraphs/main.qc diff --git a/testsuite/Makefile b/testsuite/Makefile index 910e598..669ba57 100644 --- a/testsuite/Makefile +++ b/testsuite/Makefile @@ -13,7 +13,8 @@ TESTLIST = \ maths2 \ equality \ fields1 \ - invalid-types + invalid-types \ + ngraphs .PHONY: clean test @@ -142,6 +143,11 @@ invalid-types-ok: obj invalid-types/assign.qc invalid-types/op.qc invalid-types/ invalid-types: invalid-types-ok +$(eval $(call maketest,ngraphs,qcc)) +ngraphs: + @$(VM) $< > $@/output + @diff $@/output $@/expected + ####################################################################### obj: mkdir obj diff --git a/testsuite/ngraphs/expected b/testsuite/ngraphs/expected new file mode 100644 index 0000000..81a5e67 --- /dev/null +++ b/testsuite/ngraphs/expected @@ -0,0 +1,2 @@ +#^[]|{}~\ +#^[]|{}~\ diff --git a/testsuite/ngraphs/main.qc b/testsuite/ngraphs/main.qc new file mode 100644 index 0000000..75cbd75 --- /dev/null +++ b/testsuite/ngraphs/main.qc @@ -0,0 +1,6 @@ +void(string, string) print = #1; + +void() main = { + print("??=??'??(??)??!????-??/??/", "??/n"); + print("#^[]|{}~\\", "\n"); +}; -- 2.39.2