]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/other/opaque-1.C
ppc-spe.c: Compile for all EABI targets.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / other / opaque-1.C
1 /* { dg-do run { target { powerpc*-*-* && powerpc_spe } } } */
2
3 #define __vector __attribute__((vector_size(8)))
4 typedef float __vector __ev64_fs__;
5
6 __ev64_fs__ f;
7 __ev64_opaque__ o;
8
9 int here = 0;
10
11 void bar (__ev64_opaque__ x)
12 {
13 here = 0;
14 }
15
16 void bar (__ev64_fs__ x)
17 {
18 here = 888;
19 }
20
21 int main ()
22 {
23 f = o;
24 o = f;
25 bar (f);
26 if (here != 888)
27 return 1;
28 return 0;
29 }