Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* This program is linked against SOM shared libraries, which the loader |
2 | automatically loads along with the program itself). | |
3 | */ | |
4 | ||
5 | #include <stdio.h> | |
6 | ||
085dd6e6 JM |
7 | #if defined(__cplusplus) || defined(__STDCPP__) |
8 | extern "C" int solib_main (int arg); | |
9 | #else | |
10 | int solib_main (int arg); | |
11 | #endif | |
c906108c | 12 | |
085dd6e6 | 13 | int main () |
c906108c SS |
14 | { |
15 | int result; | |
16 | ||
17 | /* Call a shlib function. */ | |
18 | result = solib_main (100); | |
19 | ||
20 | /* Call it again. */ | |
21 | result = solib_main (result); | |
085dd6e6 | 22 | return 0; |
c906108c | 23 | } |