2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / testsuite / g++.dg / ipa / comdat.C
blob40a607f9368388a1a008dc82ee0f1158788be0fc
1 /* { dg-do compile { target *-*-linux* *-*-gnu* } } */
2 /* { dg-options "-O2 -fdump-ipa-comdats"  } */
3 #include <stdio.h>
4 __attribute__ ((noinline))
5 static int q(void)
7   return printf ("test");
9 inline int t(void)
11   return q();
13 int (*f)()=t;
14 /* { dg-final { scan-ipa-dump-times "Localizing symbol" 1 "comdats"  } } */
15 /* { dg-final { cleanup-ipa-dump "comdats" } } */