packaging: changed asan macro check for "bad %if condition"
[platform/upstream/prelink.git] / testsuite / quick1.c
1 #include "reloc1.h"
2 #include <stdlib.h>
3
4 static struct A local = { 77, &local, &bar + 4 };
5 extern int baz;
6 static char *bazp0 = (char *) &baz;
7 static char *bazp1 = ((char *) &baz) + 1;
8
9 int main()
10 {
11   if (foo.a != 1 || foo.b != &foo || foo.c != &bar || bar != 26)
12     abort ();
13   if (f1 () != 11 || f2 () != 12)
14     abort ();
15   local.c -= 4;
16   if (local.a != 77 || local.b != &local || local.c != &bar)
17     abort ();
18   if (bazp1 - bazp0 != 1)
19     abort ();
20   exit (0);
21 }