Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / errno-1.c
blob6b9d28c1079902e92268e999cc255d55793b26a6
1 #include <errno.h>
2 #include "analyzer-decls.h"
4 extern void external_fn (void);
6 int test_reading_errno (void)
8 return errno;
11 void test_setting_errno (int val)
13 errno = val;
16 void test_storing_to_errno (int val)
18 __analyzer_eval (errno == val); /* { dg-warning "UNKNOWN" } */
19 errno = val;
20 __analyzer_eval (errno == val); /* { dg-warning "TRUE" } */
21 external_fn ();
22 __analyzer_eval (errno == val); /* { dg-warning "UNKNOWN" } */