Land the long talked about "type system rewrite" patch. This
[llvm/stm8.git] / test / Other / close-stderr.ll
blob40a01cc3143e38f537eec349ab47116eb6af52ea
1 ; RUN: sh -c "\
2 ; RUN:        opt --reject-this-option 2>&-; echo \$?; \
3 ; RUN:        opt -o /dev/null /dev/null 2>&-; echo \$?; \
4 ; RUN:       " | FileCheck %s
5 ; CHECK: {{^1$}}
6 ; CHECK: {{^0$}}
7 ; XFAIL: vg_leak
8 ; REQUIRES: shell
10 ; Test that the error handling when writing to stderr fails exits the
11 ; program cleanly rather than aborting.