aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ext/mv11.C
blob: 1f5c576f0a7c7f1378436ef1ecee2519e162e4d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-options "-msse2" }

int foo () __attribute__ ((target("default")));
int foo () __attribute__ ((target("sse2")));

int
main ()
{
  return foo ();
}

int  __attribute__ ((target("default")))
foo ()
{
  return 0;
}

int __attribute__ ((target("sse2")))
foo ()
{
  return 0;
}