xref: /llvm-project/flang/test/Driver/emit-asm-from-mlir.mlir (revision 71513f761cb8d334f903986c875f7d16ab2ddeaf)
1// REQUIRES: target=aarch64{{.*}} || target=x86{{.*}} || target=arm{{.*}}
2// Above restricts the test to those architectures that match "ret" to return
3// from a function.
4// Verify that the driver can consume MLIR/FIR files.
5
6// RUN: %flang_fc1 -S %s -o - | FileCheck %s
7
8// CHECK-LABEL: foo:
9// CHECK: ret
10func.func @foo() {
11  return
12}
13