1 // Test no-struct-conversion of target-rewrite pass.
2 // RUN: fir-opt -target-rewrite="no-struct-conversion" %s | FileCheck %s
4 func.func @test(%arg0: !fir.type<t{i:i32}>) {
8 func.func @test_call(%arg0: !fir.type<t{i:i32}>) {
9 fir.call @test(%arg0) : (!fir.type<t{i:i32}>) -> ()
13 func.func @test_addr_off() {
14 %0 = fir.address_of(@test) : (!fir.type<t{i:i32}>) -> ()
18 // CHECK-LABEL: func.func @test(%{{.*}}: !fir.type<t{i:i32}>) {
20 // CHECK-LABEL: func.func @test_call(
21 // CHECK-SAME: %[[ARG0:.*]]: !fir.type<t{i:i32}>) {
22 // CHECK: fir.call @test(%[[ARG0]]) : (!fir.type<t{i:i32}>) -> ()
24 // CHECK-LABEL: func.func @test_addr_off() {
25 // CHECK: fir.address_of(@test) : (!fir.type<t{i:i32}>) -> ()