| ! PR 59654: [4.8/4.9 Regression] [OOP] Broken function table with complex OO use case |
| ! Contributed by Thomas Clune <Thomas.L.Clune@nasa.gov> |
| procedure, nopass :: getNumRun |
| class (TestResult) :: this |
| this%numRun = this%numRun + 1 |
| module BaseTestRunner_mod |
| procedure, nopass :: norun |
| function norun () result(result) |
| use TestResult_mod, only: TestResult |
| type (TestResult) :: result |
| use BaseTestRunner_mod, only: BaseTestRunner |
| use TestRunner_mod, only: BaseTestRunner |
| use TestResult_mod, only: TestResult |
| type (TestResult) :: result |
| subroutine runtest (result) |
| use TestResult_mod, only: TestResult |
| class (TestResult) :: result |
| if (result%numRun /= 1) STOP 1 |