PR tree-optimization/81627
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pr61409.c
blobc27a67bd07ff146d2369beedfde5e86ba8490d62
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wuninitialized" } */
4 int *rw;
5 int line_height;
6 int pixel_width;
7 int text_cols;
8 int width1, width2, width3;
10 void *pointer;
12 void f (int i, int j)
14 void *ptr;
15 if (i)
17 if (j)
18 return;
19 ptr = pointer;
21 pixel_width = 1234 + width1 + 2 * width2 + 2 * width3;
22 *rw = text_cols + line_height;
23 if (i)
24 rw=ptr; /* { dg-bogus "uninitialized" "bogus warning" } */