blob: 39d17fa9d217d0eb968da214c068b93c3cf0156f [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-weak "" } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
/* LLVM LOCAL test not applicable */
/* { dg-require-fdump "" } */
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" } } */