bolt/deps/llvm-18.1.8/flang/test/Driver/emit-asm-from-mlir.mlir

13 lines
338 B
MLIR
Raw Normal View History

2025-02-14 19:21:04 +01:00
// REQUIRES: target=aarch64{{.*}} || target=x86{{.*}} || target=arm{{.*}}
// Above restricts the test to those architectures that match "ret" to return
// from a function.
// Verify that the driver can consume MLIR/FIR files.
// RUN: %flang_fc1 -S %s -o - | FileCheck %s
// CHECK-LABEL: foo:
// CHECK: ret
func.func @foo() {
return
}