blob: e679bede9e4584e6c3e694783e6600729c41236a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "reloc1.h"
#include <stdlib.h>
static struct A local = { 77, &local, &bar + 4 };
int main()
{
if (foo.a != 1 || foo.b != &foo || foo.c != &bar || bar != 26)
abort ();
if (f1 () != 11 || f2 () != 12)
abort ();
local.c -= 4;
if (local.a != 77 || local.b != &local || local.c != &bar)
abort ();
exit (0);
}
|