diff options
Diffstat (limited to 'testsuite/deps1.c')
-rw-r--r-- | testsuite/deps1.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/deps1.c b/testsuite/deps1.c new file mode 100644 index 0000000..331546c --- /dev/null +++ b/testsuite/deps1.c @@ -0,0 +1,18 @@ +#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 () != 1 || f2 () != 2) + abort (); + local.c -= 4; + if (local.a != 77 || local.b != &local || local.c != &bar) + abort (); + if (f8 () != 17) + abort (); + exit (0); +} |