Commit | Line | Data |
---|---|---|
6fc49d28 L |
1 | /* This is part of the shared library ld test. This file becomes part |
2 | of a shared library. */ | |
3 | ||
4 | /* This variable is defined here, and referenced by another file in | |
5 | the shared library. */ | |
6 | int shlibvar2 = 4; | |
7 | ||
8 | /* This function is called by another file in the shared library. */ | |
9 | ||
10 | int | |
11 | shlib_shlibcalled () | |
12 | { | |
13 | return 5; | |
14 | } | |
7cda33a1 L |
15 | |
16 | #ifdef DSO_DEFINE_TEST | |
17 | int | |
18 | visibility () | |
19 | { | |
20 | return 2; | |
21 | } | |
22 | ||
23 | int visibility_var = 2; | |
24 | #endif |