Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* This program is intended to be built as an HP-UX SOM shared |
2 | library, for use by the solib.exp testcase. It simply returns | |
3 | the square of its integer argument. | |
4 | */ | |
085dd6e6 | 5 | #if defined(__cplusplus) || defined(__STDCPP__) |
e444df73 | 6 | extern "C" |
085dd6e6 | 7 | #endif |
e444df73 AA |
8 | int |
9 | solib_main (int arg) | |
c906108c | 10 | { |
9ecfcd1d AA |
11 | return arg*arg; /* HERE */ |
12 | } /* STEP */ |