diff --git a/flang/test/Fir/types-to-llvm.fir b/flang/test/Fir/types-to-llvm.fir new file mode 100644 --- /dev/null +++ b/flang/test/Fir/types-to-llvm.fir @@ -0,0 +1,25 @@ +// Test FIR types conversion. + +// RUN: fir-opt --split-input-file --fir-to-llvm-ir %s | FileCheck %s + + +// Test sequence types `!fir.array` + +func private @foo0(%arg0: !fir.array<10x10xi64>) +// CHECK: !llvm.array<10 x array<10 x i64>> +func private @foo1(%arg0: !fir.array) +// CHECK: !llvm.ptr +func private @foo2(%arg0: !fir.array) +// CHECK: !llvm.ptr +func private @foo3(%arg0: !fir.array<*:i32>) +// CHECK: !llvm.ptr + +// ----- + +// Test reference types `!fir.ref` + +func private @foo0(%arg0: !fir.ref) +// CHECK: !llvm.ptr +func private @foo1(%arg0: !fir.ref>) +// CHECK: !llvm.ptr> +