Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / uninit-pr106204.c
blob7d7cf7bfc7e5309e8e16dfb8a6fcd3e6e5c906fe
1 /* { dg-additional-options "-ftrivial-auto-var-init=zero" } */
3 int foo(unsigned *len);
5 /* Modified version of reproducer that does use "len" before init. */
7 int test_2()
9 unsigned len;
10 int rc;
12 rc = len; /* { dg-warning "use of uninitialized value 'len'" } */
13 rc = foo(&len);
14 if (!rc)
15 rc = len;
16 return rc;