mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 17:28:21 +00:00
90c61c4a74
On MSYS, 70 is not seen, but 1. r127726 should be reworked. Candidate options are; 1) Use not exit(70), but _exit(70), in report_fatal_error(). 2) Return with _exit(70) in ~raw_ostream(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167836 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
384 B
LLVM
13 lines
384 B
LLVM
; RUN: sh -c 'opt --reject-this-option 2>&-; echo $?; opt -o /dev/null /dev/null 2>&-; echo $?;' \
|
|
; RUN: | FileCheck %s
|
|
; CHECK: {{^70$}}
|
|
; CHECK: {{^0$}}
|
|
; XFAIL: vg_leak
|
|
; REQUIRES: shell
|
|
|
|
; On MSYS, 70 is not seen, but 1. r127726 should be reworked.
|
|
; XFAIL: mingw32
|
|
|
|
; Test that the error handling when writing to stderr fails exits the
|
|
; program cleanly rather than aborting.
|