Revert 167755/167760. We don't want to emit crash diagnostics on command-line syntax...
[oota-llvm.git] / test / Other / close-stderr.ll
1 ; RUN: sh -c 'opt --reject-this-option 2>&-; echo $?; opt -o /dev/null /dev/null 2>&-; echo $?;' \
2 ; RUN:   | FileCheck %s
3 ; CHECK: {{^1$}}
4 ; CHECK: {{^0$}}
5 ; XFAIL: vg_leak
6 ; REQUIRES: shell
7
8 ; On MSYS, 70 is not seen, but 1. r127726 should be reworked.
9 ; XFAIL: mingw32
10
11 ; Test that the error handling when writing to stderr fails exits the
12 ; program cleanly rather than aborting.