aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/shuffle2.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/shuffle2.c')
-rw-r--r--testsuite/shuffle2.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/shuffle2.c b/testsuite/shuffle2.c
new file mode 100644
index 0000000..8c06942
--- /dev/null
+++ b/testsuite/shuffle2.c
@@ -0,0 +1,22 @@
+#include "reloc1.h"
+#include <stdlib.h>
+
+extern char testzero[16384];
+
+int main()
+{
+ int i;
+ if (foo.a != 1 || foo.b != &foo || foo.c != &bar || bar != 26)
+ abort ();
+ if (f1 () != 11 || f2 () != 12)
+ abort ();
+ for (i = 0; i < 16384; ++i)
+ if (testzero[i])
+ abort ();
+ exit (0);
+}
+
+asm (".section nonalloced,\"aw\",%nobits\n\t"
+ ".globl testzero\n\t"
+ "testzero: .skip 16384\n\t"
+ ".previous");