projects
/
external
/
prelink.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initialize Tizen 2.3
[external/prelink.git]
/
testsuite
/
reloc3.c
1
#include "reloc1.h"
2
#include <stdlib.h>
3
#include <stdio.h>
4
5
int i;
6
int j __attribute__((aligned (32)));
7
int k[2048];
8
int l = 26;
9
10
void f5 (FILE *f)
11
{
12
fprintf (stdout, "OK");
13
}
14
15
int main()
16
{
17
struct A *x;
18
foo.c -= 2;
19
if (foo.a != 1 || foo.b != &foo || foo.c[0] != 28 || foo.c[1] != 29
20
|| foo.c[2] != 30)
21
abort ();
22
if (f1 () != 11 || f2 () != 12)
23
abort ();
24
x = f3 ();
25
if (x->a != 2 || x->b != x || x->c != foo.c + 1)
26
abort ();
27
f5 (stdout);
28
exit (0);
29
}