brintos

brintos / llvm-project-archived public Read only

0
0
Text · 721 B · c1e2f34 Raw
21 lines · plain
1! Check the Flang Print Function Names example plugin doesn't count/print Functions/Subroutines in interfaces2! (It should only count definitions, which will appear elsewhere for interfaced functions/subroutines)3! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so4 5! REQUIRES: plugins, examples, shell6 7! RUN: %flang_fc1 -load %llvmshlibdir/flangPrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s8 9! CHECK: ==== Functions: 0 ====10! CHECK-NEXT: ==== Subroutines: 0 ====11 12program main13    interface14        function interface_func()15        end function16 17        subroutine interface_subr()18        end subroutine19    end interface20end program main21