2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / g++.dg / ext / vector14.C
blobfebdab91ebd4d92e024af29349632348bc4a9351
1 // PR c++/35758
2 // { dg-do compile }
3 // { dg-options "-msse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
4 // Ignore warning on some powerpc-linux configurations.
5 // { dg-prune-output "non-standard ABI extension" }
7 #define vector __attribute__((vector_size(16)))
9 template<int N> vector signed int foo (vector float value) {}
11 template<int> void foo (float) {}
13 int
14 main ()
16   vector float v;
17   float f;
18   foo<1> (v);
19   foo<1> (f);