Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-x86-64 / protected-data-1a.c
blob6942426ecb3b421e7a5445bff70a32141ab0f621
1 #include "protected-data-1.h"
3 int protected_data_1a __attribute__ ((visibility("protected"))) = 1;
4 int protected_data_1b __attribute__ ((visibility("protected"))) = 2;
6 int *
7 protected_data_1a_p (void)
9 return &protected_data_1a;
12 int *
13 protected_data_1b_p (void)
15 return &protected_data_1b;
18 void
19 set_protected_data_1a (int i)
21 protected_data_1a = i;
24 void
25 set_protected_data_1b (int i)
27 protected_data_1b = i;
30 int
31 check_protected_data_1a (int i)
33 return protected_data_1a == i ? 0 : 1;
36 int
37 check_protected_data_1b (int i)
39 return protected_data_1b == i ? 0 : 1;