summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/opaque-1.C
blob: 5cdaeafe31aa8203108a24c93881b472e4f48900 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* { dg-do run } */
/* { 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;

int here = 0;

void bar (__ev64_opaque__ x)
{
  here = 0;
}

void bar (__ev64_fs__ x)
{ 
  here = 888;
}

int main ()
{
  f = o;
  o = f;
  bar (f);
  if (here != 888)
    return 1;
  return 0;
}