| 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.so |
| 3 |
|
| 4 |
! REQUIRES: plugins, examples, shell |
| 5 |
|
| 6 |
! RUN: %flang_fc1 -load %llvmshlibdir/flangPrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s |
| 7 |
|
| 8 |
! CHECK: ==== Functions: 0 ==== |
| 9 |
! CHECK-NEXT: ==== Subroutines: 0 ==== |
| 10 |
|
| 11 |
program main |
| 12 |
call subroutine1 |
| 13 |
fn1 = function1() |
| 14 |
fn2 = function2() |
| 15 |
end program main |