Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / c-c++-common / Wswitch-unreachable-3.c
blobc53cb106b214b81f6937980bb6372a50e055db75
1 /* { dg-do compile } */
3 extern void f (int *);
5 void
6 g (int i)
8 switch (i)
10 int a[3];
11 __builtin_memset (a, 0, sizeof a); /* { dg-warning "statement will never be executed" } */
13 default:
14 f (a);
17 switch (i)
19 int a[3];
20 int b[3];
21 int c[3];
22 b[1] = 60; /* { dg-warning "statement will never be executed" } */
24 default:
25 f (a);
26 f (b);
27 f (c);