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"; + } +}