From 28b32d9d77683131f15a7b72917014ee9abe4144 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Mon, 25 Nov 2019 16:41:12 +0100 Subject: [PATCH] trivially fix #134 was fixed in the past --- tests/allman/issue0134.d.ref | 15 +++++++++++++++ tests/issue0134.d | 11 +++++++++++ tests/otbs/issue0134.d.ref | 13 +++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 tests/allman/issue0134.d.ref create mode 100644 tests/issue0134.d create mode 100644 tests/otbs/issue0134.d.ref diff --git a/tests/allman/issue0134.d.ref b/tests/allman/issue0134.d.ref new file mode 100644 index 0000000..fbc72c0 --- /dev/null +++ b/tests/allman/issue0134.d.ref @@ -0,0 +1,15 @@ +void foo() +{ + string command; + version (Posix) + command ~= " 2> /dev/null 1> /dev/null"; + + version (Posix) + command ~= " 2> /dev/null 1> /dev/null"; + + unittest + { + version (Posix) + command ~= " 2> /dev/null 1> /dev/null"; + } +} diff --git a/tests/issue0134.d b/tests/issue0134.d new file mode 100644 index 0000000..8b57f0e --- /dev/null +++ b/tests/issue0134.d @@ -0,0 +1,11 @@ +void foo() { + string command; + version (Posix) command ~= " 2> /dev/null 1> /dev/null"; + + version (Posix) command ~= " 2> /dev/null 1> /dev/null"; + + unittest + { + version (Posix) command ~= " 2> /dev/null 1> /dev/null"; + } +} diff --git a/tests/otbs/issue0134.d.ref b/tests/otbs/issue0134.d.ref new file mode 100644 index 0000000..4e2c535 --- /dev/null +++ b/tests/otbs/issue0134.d.ref @@ -0,0 +1,13 @@ +void foo() { + string command; + version (Posix) + command ~= " 2> /dev/null 1> /dev/null"; + + version (Posix) + command ~= " 2> /dev/null 1> /dev/null"; + + unittest { + version (Posix) + command ~= " 2> /dev/null 1> /dev/null"; + } +}