Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / g++.dg / ipa / ipa-icf-1.C
blobbad090b4fbfca5e447be8bee8d9c11d7165b4585
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-icf"  } */
4 class A
6 public:
7   __attribute__ ((noinline))
8   virtual int Foo2()
9   {
10     return v;
11   }
13   float f;
14   int v;
17 class B
19 public:
20   __attribute__ ((noinline))
21   int Bar2()
22   {
23     return v;
24   }
26   float f, aaa;
27   int v;
30 int main()
32   A a;
33   B b;
35   a.Foo2();
36   b.Bar2();
38   return 12345;
41 /* { dg-final { scan-ipa-dump-not "Semantic equality hit:" "icf"  } } */
42 /* { dg-final { scan-ipa-dump "Equal symbols: 0" "icf"  } } */