Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-vsb / sh2.c
blobe9a9687bcce5dbd2f1a816ecabd96e10796cb0c8
1 /* This is part of the shared library ld test. This file becomes part
2 of a shared library. */
4 /* This variable is defined here, and referenced by another file in
5 the shared library. */
6 int shlibvar2 = 4;
8 /* This variable is defined here, and shouldn't be used to resolve a
9 reference with non-default visibility in another shared library. */
10 int visibility_com = 2;
12 /* This function is called by another file in the shared library. */
14 int
15 shlib_shlibcalled ()
17 return 5;
20 #ifdef DSO_DEFINE_TEST
21 int
22 visibility ()
24 return 2;
27 int visibility_var = 2;
29 int visibility_def = 2;
31 int
32 visibility_func ()
34 return 2;
36 #endif
38 #ifdef HIDDEN_WEAK_TEST
39 int visibility_var_weak = 2;
41 int
42 visibility_func_weak ()
44 return 2;
46 #endif
48 #ifndef SHARED
49 # ifndef XCOFF_TEST
50 int overriddenvar = -1;
52 int
53 shlib_overriddencall2 ()
55 return 7;
57 # endif
58 # ifdef PROTECTED_TEST
59 int shared_data = 100;
60 # endif
61 #endif