1 ! Test the `-emit-mlir` option
6 ! RUN: %flang_fc1 -emit-mlir %s -o - | FileCheck %s
7 ! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
9 ! Verify that an `.mlir` file is created when `-emit-mlir` is used. Do it in a temporary directory, which will be cleaned up by the
11 ! RUN: rm -rf %t-dir && mkdir -p %t-dir && cd %t-dir
13 ! RUN: %flang_fc1 -emit-mlir emit-mlir.f90 && ls emit-mlir.mlir
18 ! CHECK: module attributes {
19 ! CHECK-LABEL: func @_QQmain() {