1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-ipa-devirt -fdump-tree-optimized" } */
9 __attribute__ ((visibility("default")))
10 virtual int foo(void) {return 42;}
15 __attribute__ ((visibility("hidden")))
16 virtual int foo(void);
24 return d->foo()+b->foo();
26 /* { dg-final { scan-tree-dump "OBJ_TYPE_REF" "optimized" } } */
27 /* { dg-final { cleanup-tree-dump "optimized" } } */