Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / symbolic-6.c
blob10d4e97229933d8357bbe0cb6c6353e62b5c5e06
1 #include "analyzer-decls.h"
3 int a[1024];
4 int b[1024];
6 extern void escape (void *ptr);
8 void test_1 (int *p)
10 int c, d;
11 escape (&c);
13 *p = 42;
14 __analyzer_eval (*p == 42); /* { dg-warning "TRUE" } */
16 /* These writes shouldn't affect *p. */
17 c = 33;
18 d = 44;
19 __analyzer_eval (*p == 42); /* { dg-warning "TRUE" } */
21 /* This write could affect *p. */
22 a[16] = 55;
23 __analyzer_eval (*p == 42); /* { dg-warning "UNKNOWN" } */