bolt/deps/llvm-18.1.8/flang/test/Examples/print-fns-calls.f90
2025-02-14 19:21:04 +01:00

15 lines
558 B
Fortran

! Check the Flang Print Function Names example plugin doesn't count/print function/subroutine calls (should only count definitions)
! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so
! REQUIRES: plugins, examples, shell
! RUN: %flang_fc1 -load %llvmshlibdir/flangPrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s
! CHECK: ==== Functions: 0 ====
! CHECK-NEXT: ==== Subroutines: 0 ====
program main
call subroutine1
fn1 = function1()
fn2 = function2()
end program main