xref: /llvm-project/flang/test/Transforms/experimental.fir (revision 5653884e34e05ee7aad099cc7f729688d92a002f)
1// RUN: fir-opt --split-input-file --simplify-intrinsics='enable-experimental=true' %s | FileCheck %s
2
3// check that a simple function compiled with experimental enabled
4module attributes {fir.defaultkind = "a1c4d8i4l4r4", fir.kindmap = "", llvm.target_triple = "native"} {
5  func.func @experimental_1(%arg0: !fir.ref<i32> {fir.bindc_name = "a"}) -> i32 {
6    %c10 = arith.constant 10 : i32
7    return %c10 : i32
8  }
9}
10
11// CHECK-LABEL:   func.func @experimental_1(
12// CHECK:           return %{{.*}} : i32
13// CHECK:         }
14