bpf: avoid possible null deref in btf_ext_output [PR target/117447]
[official-gcc.git] / gcc / testsuite / gcc.dg / pr83089.c
blob5185a70df5c53b5954834bc59aa645c3a7216570
1 /* { dg-do compile } */
2 /* { dg-require-effective-target pthread } */
3 /* { dg-options "-O2 -ftree-loop-if-convert -ftree-parallelize-loops=2" } */
5 int rl, s8;
7 void
8 it (int zy, short int el)
10 int hb;
12 while (el != 0)
14 hb = el;
15 for (rl = 0; rl < 200; ++rl)
17 for (s8 = 0; s8 < 2; ++s8)
20 if (s8 < 3)
21 zy = hb;
22 if (hb == 0)
23 ++s8;
24 zy += (s8 != -1);
26 el = zy;