]> git.ipfire.org Git - thirdparty/gcc.git/blame - 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
CommitLineData
9251175f 1/* { dg-do run { target { powerpc*-*-* && powerpc_spe } } } */
7d149679
AH
2
3#define __vector __attribute__((vector_size(8)))
4typedef float __vector __ev64_fs__;
5
6__ev64_fs__ f;
7__ev64_opaque__ o;
8
9int here = 0;
10
11void bar (__ev64_opaque__ x)
12{
13 here = 0;
14}
15
16void bar (__ev64_fs__ x)
17{
18 here = 888;
19}
20
21int main ()
22{
23 f = o;
24 o = f;
25 bar (f);
26 if (here != 888)
27 return 1;
28 return 0;
29}