1 #include "analyzer-decls.h"
3 /* According to PR 107807 comment #2, Solaris implements "errno"
6 extern int *___errno(void) __attribute__((__const__
));
7 #define errno (*(___errno()))
10 extern void external_fn (void);
12 int test_reading_errno (void)
17 void test_setting_errno (int val
)
22 void test_storing_to_errno (int val
)
24 __analyzer_eval (errno
== val
); /* { dg-warning "UNKNOWN" } */
26 __analyzer_eval (errno
== val
); /* { dg-warning "TRUE" } */
28 __analyzer_eval (errno
== val
); /* { dg-warning "UNKNOWN" } */