aboutsummaryrefslogtreecommitdiffstats
path: root/test/Other/close-stderr.ll
blob: b6dc1b246a188787eed62ef126fa06c2109dc28c (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: sh -c "\
; RUN:        opt --reject-this-option 2>&-; echo \$?; \
; RUN:        opt -o /dev/null /dev/null 2>&-; echo \$?; \
; RUN:       " | FileCheck %s
; CHECK: {{^1$}}
; CHECK: {{^0$}}
; XFAIL: vg_leak

; Test that the error handling when writing to stderr fails exits the
; program cleanly rather than aborting.