[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Lower / Intrinsics / rrspacing.f90
blobf5c3abb27af341bbdaf2d30d91a974a5bce85f01
1 ! RUN: bbc -emit-fir %s -o - | FileCheck %s
2 ! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
4 ! CHECK-LABEL: func @_QPrrspacing_test2(
5 ! CHECK-SAME: %[[x:[^:]+]]: !fir.ref<f128>{{.*}}) -> f128
6 real*16 function rrspacing_test2(x)
7 real*16 :: x
8 rrspacing_test2 = rrspacing(x)
9 ! CHECK: %[[a1:.*]] = fir.load %[[x]] : !fir.ref<f128>
10 ! CHECK: %{{.*}} = fir.call @_FortranARRSpacing16(%[[a1]]) {{.*}}: (f128) -> f128
11 end function