testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / errno-global-var.c
blobfdf1b17cecc4febcfc0a045eb7f74adfff026408
1 #include "analyzer-decls.h"
3 /* "errno" declared as a global var. */
5 extern int errno;
7 extern void external_fn (void);
9 int test_reading_errno (void)
11 return errno;
14 void test_setting_errno (int val)
16 errno = val;
19 void test_storing_to_errno (int val)
21 __analyzer_eval (errno == val); /* { dg-warning "UNKNOWN" } */
22 errno = val;
23 __analyzer_eval (errno == val); /* { dg-warning "TRUE" } */
24 external_fn ();
25 __analyzer_eval (errno == val); /* { dg-warning "UNKNOWN" } */