OSDN Git Service

revert accidentally committed changes
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / vector14.C
1 // PR c++/35758
2 // { dg-do compile }
3 // { dg-options "-msse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
4 // { dg-require-effective-target sse }
5 // Ignore warning on some powerpc-linux configurations.
6 // { dg-prune-output "non-standard ABI extension" }
7 // { dg-prune-output "mangled name" }
8
9 #define vector __attribute__((vector_size(16)))
10
11 template<int N> vector signed int foo (vector float value) {}
12
13 template<int> void foo (float) {}
14
15 int
16 main ()
17 {
18   vector float v;
19   float f;
20   foo<1> (v);
21   foo<1> (f);
22 }