[LLVM] Fix Maintainers.md formatting (NFC)
[llvm-project.git] / flang / test / Examples / print-fns-interfaces.f90
blobc1e2f3488e232bf05d8f50942c52ec109b0a63d9
1 ! Check the Flang Print Function Names example plugin doesn't count/print Functions/Subroutines in interfaces
2 ! (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.so
5 ! REQUIRES: plugins, examples, shell
7 ! RUN: %flang_fc1 -load %llvmshlibdir/flangPrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s
9 ! CHECK: ==== Functions: 0 ====
10 ! CHECK-NEXT: ==== Subroutines: 0 ====
12 program main
13 interface
14 function interface_func()
15 end function
17 subroutine interface_subr()
18 end subroutine
19 end interface
20 end program main