Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / error-uninit.c
blob8d52a177b113ad5aec7568db8a96604bfce68dc4
1 /* Verify that we check for uninitialized values passed to functions
2 that we have special-cased region-model handling for. */
4 extern void error (int __status, int __errnum, const char *__format, ...)
5 __attribute__ ((__format__ (__printf__, 3, 4)));
7 void test_uninit_status (int arg)
9 int st;
10 error (st, 42, "test: %s", arg); /* { dg-warning "use of uninitialized value 'st'" } */
13 void test_uninit_errnum (int st)
15 int num;
16 error (st, num, "test"); /* { dg-warning "use of uninitialized value 'num'" } */
19 void test_uninit_fmt (int st)
21 const char *fmt;
22 error (st, 42, fmt); /* { dg-warning "use of uninitialized value 'fmt'" } */
25 void test_uninit_vargs (int st)
27 int arg;
28 error (st, 42, "test: %s", arg); /* { dg-warning "use of uninitialized value 'arg'" } */