summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr27781.c
blob: 233c93dac388a8985325d3fa60506162e5426f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { 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" } } */