2 ! { dg-options "-fdump-tree-optimized -O" }
4 ! PR 50960: [OOP] vtables not marked as constant
6 ! This test case checks whether the type-bound call to "x%bar"
7 ! is optimized into a static call to "base".
9 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
14 procedure, nopass :: bar => base
24 class(t), allocatable :: x
29 ! { dg-final { scan-tree-dump-times "base \\(\\);" 1 "optimized" } }
30 ! { dg-final { cleanup-tree-dump "optimized" } }
32 ! { dg-final { cleanup-modules "m" } }