brintos

brintos / llvm-project-archived public Read only

0
0
Text · 558 B · f45a093 Raw
16 lines · plain
1! Check the Flang Print Function Names example plugin doesn't count/print function/subroutine calls (should only count definitions)2! This requires that the examples are built (LLVM_BUILD_EXAMPLES=ON) to access flangPrintFunctionNames.so3 4! REQUIRES: plugins, examples, shell5 6! RUN: %flang_fc1 -load %llvmshlibdir/flangPrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s7 8! CHECK: ==== Functions: 0 ====9! CHECK-NEXT: ==== Subroutines: 0 ====10 11program main12    call subroutine113    fn1 = function1()14    fn2 = function2()15end program main16