summaryrefslogtreecommitdiffstats
path: root/test cases/common/145 recursive linking/edge-cases/shstmain.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test cases/common/145 recursive linking/edge-cases/shstmain.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test cases/common/145 recursive linking/edge-cases/shstmain.c b/test cases/common/145 recursive linking/edge-cases/shstmain.c
new file mode 100644
index 0000000..334f867
--- /dev/null
+++ b/test cases/common/145 recursive linking/edge-cases/shstmain.c
@@ -0,0 +1,16 @@
+#include <stdio.h>
+
+#include "../lib.h"
+
+int get_stshdep_value (void);
+
+int main(void) {
+ int val;
+
+ val = get_stshdep_value ();
+ if (val != 1) {
+ printf("st1 value was %i instead of 1\n", val);
+ return -1;
+ }
+ return 0;
+}