aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/pr22983a.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-plugin/pr22983a.c')
-rw-r--r--ld/testsuite/ld-plugin/pr22983a.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/pr22983a.c b/ld/testsuite/ld-plugin/pr22983a.c
new file mode 100644
index 0000000..283f263
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr22983a.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+int func_attr_used_disabled(int val);
+int func_attr_used_enabled(int val);
+extern int var_attr_used_enabled;
+extern int var_attr_used_disabled;
+
+int main(int argc, const char **argv){
+ printf("%d\n", var_attr_used_disabled);
+ printf("%d\n", var_attr_used_enabled);
+ printf("%d\n", func_attr_used_disabled(1));
+ printf("%d\n", func_attr_used_enabled(1));
+ return 0;
+}