This patch adds -g[no-]fission as a synonym for -g[no-]split-dwarf,
[official-gcc.git] / main / gcc / testsuite / g++.dg / mv6.C
blobc0323f6d480ebc65a55674eb9edbc7ff1052e432
1 /* Test to check if member version multiversioning works correctly.  */
3 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
4 /* { dg-require-ifunc "" }  */
5 /* { dg-options "-march=x86-64" } */
7 class Foo
9  public:
10   /* Default version of foo.  */
11   int foo ()
12   {
13     return 0;
14   }
15   /* corei7 version of foo.  */
16   __attribute__ ((target("arch=corei7")))
17   int foo ()
18   {
19     return 0;
20   }
23 int main ()
25   Foo f;
26   return f.foo ();