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
)
10 error (st
, 42, "test: %s", arg
); /* { dg-warning "use of uninitialized value 'st'" } */
13 void test_uninit_errnum (int st
)
16 error (st
, num
, "test"); /* { dg-warning "use of uninitialized value 'num'" } */
19 void test_uninit_fmt (int st
)
22 error (st
, 42, fmt
); /* { dg-warning "use of uninitialized value 'fmt'" } */
25 void test_uninit_vargs (int st
)
28 error (st
, 42, "test: %s", arg
); /* { dg-warning "use of uninitialized value 'arg'" } */