summaryrefslogtreecommitdiff
path: root/tests/t0001-utf8.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t0001-utf8.sh')
-rwxr-xr-xtests/t0001-utf8.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/t0001-utf8.sh b/tests/t0001-utf8.sh
new file mode 100755
index 0000000..6726cfe
--- /dev/null
+++ b/tests/t0001-utf8.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -eu
+out="${TMPDIR-/tmp}/mcpu-cpp-utf8-$$.out"
+trap 'rm -f "$out"' EXIT HUP INT TERM
+"$MCPU_CPP" --no-config "$srcdir/data/utf8.c" -o "$out"
+grep 'Привет, MCPU' "$out" >/dev/null