OSDN Git Service

e0641bfd6545c047060ecc0e8dfcdd7e7bad3b73
[android-x86/external-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: {{^70$}}
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.