aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr116057.c
blob: a7021c8e746e9110990a4757ecff6cedd361dc14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do run } */
/* { dg-additional-options "-Wno-psabi" } */

#define vect8 __attribute__((vector_size(8)))

vect8 int __attribute__((noipa))
f(int a)
{
  int b;
  vect8 int t={1,1};
  if(a) return t;
  return (vect8 int){0, b};
}

int main ()
{
  if (f(0)[0] != 0)
    __builtin_abort ();
  return 0;
}