summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-gc/pr13683.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-gc/pr13683.c')
-rw-r--r--ld/testsuite/ld-gc/pr13683.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/ld/testsuite/ld-gc/pr13683.c b/ld/testsuite/ld-gc/pr13683.c
new file mode 100644
index 0000000000..c585e06db5
--- /dev/null
+++ b/ld/testsuite/ld-gc/pr13683.c
@@ -0,0 +1,28 @@
+void foo(void);
+
+int main(void)
+{
+ foo ();
+
+ for (;;)
+ ;
+}
+
+int a;
+
+void foo1(void)
+{
+ a = 1;
+}
+
+void foo2(void)
+{
+ a = 2;
+}
+
+void foo3(void)
+{
+ a = 3;
+}
+
+