|
Last change
on this file was 610, checked in by bird, 22 years ago |
|
This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.
|
-
Property cvs2svn:cvs-rev
set to
1.1.1.2
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
|
File size:
754 bytes
|
| Line | |
|---|
| 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 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;
|
|---|
| 11 |
|
|---|
| 12 | /* This function is called by another file in the shared library. */
|
|---|
| 13 |
|
|---|
| 14 | int
|
|---|
| 15 | shlib_shlibcalled ()
|
|---|
| 16 | {
|
|---|
| 17 | return 5;
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | #ifdef DSO_DEFINE_TEST
|
|---|
| 21 | int
|
|---|
| 22 | visibility ()
|
|---|
| 23 | {
|
|---|
| 24 | return 2;
|
|---|
| 25 | }
|
|---|
| 26 |
|
|---|
| 27 | int visibility_var = 2;
|
|---|
| 28 |
|
|---|
| 29 | int visibility_def = 2;
|
|---|
| 30 |
|
|---|
| 31 | int
|
|---|
| 32 | visibility_func ()
|
|---|
| 33 | {
|
|---|
| 34 | return 2;
|
|---|
| 35 | }
|
|---|
| 36 | #endif
|
|---|
| 37 |
|
|---|
| 38 | #ifdef HIDDEN_WEAK_TEST
|
|---|
| 39 | int visibility_var_weak = 2;
|
|---|
| 40 |
|
|---|
| 41 | int
|
|---|
| 42 | visibility_func_weak ()
|
|---|
| 43 | {
|
|---|
| 44 | return 2;
|
|---|
| 45 | }
|
|---|
| 46 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.