Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-unreachable-6.c
blob2fe06ac7a0791df6c549bdac5f04c05072941dfd
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-fab1" } */
4 void
5 foo (int b, int c)
7 void *x = &&lab;
8 if (b)
10 lab:
11 __builtin_unreachable ();
13 lab2:
14 if (c)
15 x = &&lab2;
16 goto *x;
19 /* { dg-final { scan-tree-dump-times "lab:" 1 "fab1" } } */
20 /* { dg-final { scan-tree-dump-times "__builtin_unreachable" 1 "fab1" } } */
21 /* { dg-final { cleanup-tree-dump "fab1" } } */