aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/053.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/053.sh b/tests/053.sh
new file mode 100644
index 0000000..c4350b8
--- /dev/null
+++ b/tests/053.sh
@@ -0,0 +1,33 @@
+set -e
+
+cat <<'EOF' > expected
+39
+34
+63
+92
+7
+8
+12
+10
+13
+9
+11
+EOF
+bash ../../test_diff.sh <<'EOF'
+int printf();
+
+int main() {
+ printf("%d\n", '\'');
+ printf("%d\n", '\"');
+ printf("%d\n", '\?');
+ printf("%d\n", '\\');
+ printf("%d\n", '\a');
+ printf("%d\n", '\b');
+ printf("%d\n", '\f');
+ printf("%d\n", '\n');
+ printf("%d\n", '\r');
+ printf("%d\n", '\t');
+ printf("%d\n", '\v');
+ return 0;
+}
+EOF