projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
60fab3df0d9f904fb85314248cb4811ba38a0ff2
[oota-llvm.git]
/
test
/
Other
/
close-stderr.ll
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
8
; Test that the error handling when writing to stderr fails exits the
9
; program cleanly rather than aborting.