1 // PR c++/69445 2 // { dg-do compile { target c++11 } } 3 // { dg-options "-fdump-tree-original" } 4 5 struct Base { 6 virtual void foo() const = 0; barBase7 virtual void bar() const {} 8 }; 9 10 struct C final : Base { foofinal11 void foo() const { } 12 }; 13 func(const C & c)14void func(const C & c) { 15 c.bar(); 16 c.foo(); 17 } 18 19 // { dg-final { scan-tree-dump-times "OBJ_TYPE_REF" 0 "original" } } 20