PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr85169.c
bloba21ed9b7264c141d38620c1623c93209fed4d724
1 /* PR target/85169 */
3 typedef char V __attribute__((vector_size (64)));
5 static void __attribute__ ((noipa))
6 foo (V *p)
8 V v = *p;
9 v[63] = 1;
10 *p = v;
13 int
14 main ()
16 V v = (V) { };
17 foo (&v);
18 for (unsigned i = 0; i < 64; i++)
19 if (v[i] != (i == 63))
20 __builtin_abort ();
21 return 0;