summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/opaque-2.C
blob: 3bb4af2c7786acfed33607aeea2425bec88a09f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-mcpu=8540 -mspe -mabi=spe -mfloat-gprs=single" } */
/* { dg-skip-if "not an SPE target" { ! powerpc_spe_nocache } { "*" } { "" } } */

#define __vector __attribute__((vector_size(8)))
typedef float __vector __ev64_fs__;

__ev64_fs__ f;
__ev64_opaque__ o;

extern void bar (__ev64_opaque__);

int main ()
{
  f = o;
  o = f;
  bar (f);
  return 0;
}