aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/altivec-2.c
blob: 23eaf3d230d818c2408376bf0ff8b732f268bd0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* APPLE LOCAL file AltiVec */
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-options "-faltivec" } */

/* Check whether AltiVec allows for 'bool'
   and 'pixel' to be #defined to mean other things.  */

extern void abort (void);
#define CHECK_IF(E) if(!(E)) abort()

#define bool char
#define pixel unsigned char

int main(void) {
  bool x1;
  pixel x2;

  CHECK_IF(sizeof(x1) == 1);
  CHECK_IF(sizeof(x2) == 1);
  return 0;
}