1 /* { dg-do compile } */
2 /* { dg-options "-O -Wuninitialized" } */
3 /* { dg-additional-options "-finline-small-functions" { target avr-*-* } } */
4
5 int a, l, m;
6 float *b;
7 float c, d, e, g, h;
8 unsigned char i, k;
9 void
fn1(int p1,float * f1,float * f2,float * f3,unsigned char * c1,float * f4,unsigned char * c2,float * p10)10 fn1 (int p1, float *f1, float *f2, float *f3, unsigned char *c1, float *f4,
11 unsigned char *c2, float *p10)
12 {
13 if (p1 & 8)
14 b[3] = p10[a];
15 /* { dg-warning "may be used uninitialized" "" { target { { nonpic } || { hppa*64*-*-* *-*-darwin* } } } .-1 } */
16 }
17
18 void
fn2()19 fn2 ()
20 {
21 float *n;
22 if (l & 6)
23 n = &c + m;
24 fn1 (l, &d, &e, &g, &i, &h, &k, n);
25 /* { dg-warning "may be used uninitialized" "" { target { ! { { nonpic } || { hppa*64*-*-* *-*-darwin* } } } } .-1 } */
26 }
27