* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / Wunused-var-3.c
blob5954c3b1be74dcabd15a1a0d2c4d561dff2e9358
1 /* PR c/52577 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wunused" } */
5 typedef int V __attribute__((vector_size (sizeof (int) * 4)));
7 void
8 f1 (V *p)
10 V mask = { 1, 2, 3, 0 };
11 *p = __builtin_shuffle (*p, mask);
14 void
15 f2 (V *p, V *q)
17 V mask = { 1, 2, 3, 0 };
18 *p = __builtin_shuffle (*p, *q, mask);
21 void
22 f3 (V *p, V *mask)
24 V a = { 1, 2, 3, 0 };
25 *p = __builtin_shuffle (a, *mask);
28 void
29 f4 (V *p, V *mask)
31 V a = { 1, 2, 3, 0 };
32 V b = { 2, 3, 4, 1 };
33 *p = __builtin_shuffle (a, b, *mask);