xref: /llvm-project/flang/test/Driver/input-from-stdin/input-from-stdin-llvm.ll (revision 52a3855fe7ca106e675175cb8db87c1f57b2242a)
1; Verify that reading from stdin works as expected - LLVM input
2
3; REQUIRES: aarch64-registered-target
4
5; Input type is implicit - assumed to be Fortran. As the input is provided via
6; stdin, the file extension is not relevant here.
7; RUN: cat %s | not %flang -S - -o -
8; RUN: cat %s | not %flang_fc1 -S - -o -
9
10; Input type is explicit
11; RUN: cat %s | %flang -x ir -S -target aarch64-unknown-linux-gnu - -o - | FileCheck %s
12; RUN: cat %s | %flang_fc1 -x ir -S -triple aarch64-unknown-linux-gnu - -o - | FileCheck %s
13
14; CHECK-LABEL: foo:
15; CHECK: ret
16
17define void @foo() {
18  ret void
19}
20