1; REQUIRES: default_triple 2 3; Often LLVM tools use "-" to indicate that output should be written to stdout 4; instead of a file. This behaviour is implemented by the raw_fd_ostream class. 5; This test verifies that when doing so multiple times we don't try to access a 6; closed STDOUT_FILENO. The exact options used in this test are unimportant, as 7; long as they write to stdout using raw_fd_ostream. 8; RUN: llc %s -o=- -pass-remarks-output=- -filetype=asm | FileCheck %s 9; foobar should appear as a function somewhere in the assembly file. 10; CHECK: foobar 11; !Analysis appears at the start of pass-remarks-output. 12; CHECK: !Analysis 13 14define void @foobar() { 15 ret void 16} 17