brintos

brintos / llvm-project-archived public Read only

0
0
Text · 670 B · e3dee78 Raw
17 lines · plain
1; REQUIRES: default_triple2 3; Often LLVM tools use "-" to indicate that output should be written to stdout4; 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 a6; closed STDOUT_FILENO. The exact options used in this test are unimportant, as7; long as they write to stdout using raw_fd_ostream.8; RUN: llc %s -o=- -pass-remarks-output=- -filetype=asm | FileCheck %s9; foobar should appear as a function somewhere in the assembly file.10; CHECK: foobar11; !Analysis appears at the start of pass-remarks-output.12; CHECK: !Analysis13 14define void @foobar() {15  ret void16}17