OSDN Git Service

2009-07-17 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / altivec-14.C
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-require-effective-target powerpc_altivec_ok } */
3 /* { dg-options "-maltivec" } */
4
5 void f (__attribute__((altivec (vector__))) signed int * a,
6         __attribute__((altivec (vector__))) signed int * const b);
7
8 int
9 foo (void)
10 {
11   __attribute__((altivec (vector__))) signed int a[1], b[1];
12   f (a, b);
13 }