aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/pr22983b.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-plugin/pr22983b.c')
-rw-r--r--ld/testsuite/ld-plugin/pr22983b.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/pr22983b.c b/ld/testsuite/ld-plugin/pr22983b.c
new file mode 100644
index 0000000..1b66ed8
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr22983b.c
@@ -0,0 +1,10 @@
+int func_attr_used_disabled(int val){
+ return val + 1;
+}
+__attribute__((used))
+int func_attr_used_enabled(int val){
+ return val + 1;
+}
+__attribute__((used))
+int var_attr_used_enabled = 0b0101010101;
+int var_attr_used_disabled = 0b0101010101;