brintos

brintos / llvm-project-archived public Read only

0
0
Text · 616 B · 2e5c091 Raw
14 lines · plain
1// RUN: fir-opt --cg-rewrite="preserve-declare=true" %s -o - | FileCheck %s --check-prefixes DECL2// RUN: fir-opt --cg-rewrite="preserve-declare=false" %s -o - | FileCheck %s --check-prefixes NODECL3// RUN: fir-opt --cg-rewrite %s -o - | FileCheck %s  --check-prefixes NODECL4 5func.func @dummy_scope(%arg0: !fir.ref<f32>) {6  %scope = fir.dummy_scope : !fir.dscope7  %0 = fir.declare %arg0 dummy_scope %scope {uniq_name = "x"} : (!fir.ref<f32>, !fir.dscope) -> !fir.ref<f32>8  return9}10// DECL-LABEL: func.func @dummy_scope(11// DECL: fircg.ext_declare12 13// NODECL-LABEL: func.func @dummy_scope(14// NODECL-NEXT: return