aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/shuffle8.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/shuffle8.c')
-rw-r--r--testsuite/shuffle8.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/shuffle8.c b/testsuite/shuffle8.c
new file mode 100644
index 0000000..4e80184
--- /dev/null
+++ b/testsuite/shuffle8.c
@@ -0,0 +1,20 @@
+#include "reloc1.h"
+#include <stdlib.h>
+
+static struct A local = { 77, &local, &bar + 4 };
+int vbss[16384] __attribute__((aligned (4096)));
+int vdata __attribute__((aligned (4096))) = 5;
+
+asm (".text; .balign 4096; vtext:; .previous");
+
+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 (vbss[31] + vdata - 5);
+}