Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / ext / vector14.C
blob8e792108fb861d836760a37a8d6328a1951a9a47
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" }
9 #define vector __attribute__((vector_size(16)))
11 template<int N> vector signed int foo (vector float value) {}
13 template<int> void foo (float) {}
15 int
16 main ()
18   vector float v;
19   float f;
20   foo<1> (v);
21   foo<1> (f);