blob: 233c93dac388a8985325d3fa60506162e5426f9b [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-weak-override "" } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
void __attribute__((weak)) func(void)
{
/* no code */
}
int main()
{
func();
return 0;
}
/* { dg-final { scan-tree-dump "func \\(\\);" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */