Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / compound-assignment-4.c
blob5c0a5f9d47c0bf1b603434746bd63f2577649e07
1 #include "analyzer-decls.h"
3 struct coord
5 int x;
6 int y;
7 };
9 void test_1 (void)
11 struct coord arr[16];
13 arr[2].y = 4;
14 arr[3].x = 5;
15 arr[3].y = 6;
16 arr[4].x = 7;
17 arr[6].y = 8;
18 arr[8].x = 9;
20 arr[7] = arr[3];
22 __analyzer_eval (arr[7].x == 5); /* { dg-warning "TRUE" } */
23 __analyzer_eval (arr[7].y == 6); /* { dg-warning "TRUE" } */
25 /* Make sure we don't touch the neighbors. */
26 __analyzer_eval (arr[6].y == 8); /* { dg-warning "TRUE" } */
27 __analyzer_eval (arr[8].x == 9); /* { dg-warning "TRUE" } */