summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/altivec-29.c
blob: 10a25ecbb1b3a7725c7c1459293edf4a050232a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR target/39558 */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -save-temps" } */

#define ATTRIBUTE_UNUSED __attribute__((unused))

int *foo (int *vector)
{
  return vector;
}

int *bar (int *vector ATTRIBUTE_UNUSED)
{
  return vector;
}

int *baz (int *vector __attribute__((unused)))
{
  return vector;
}

/* { dg-final { cleanup-saved-temps } } */