libphobos/testsuite/libphobos.shared/linkD.c
raw| 1 | #include <stdlib.h> |
| 2 | #include <assert.h> |
| 3 | |
| 4 | extern int runTests(void); |
| 5 | extern int lib_init(void); |
| 6 | extern int lib_term(void); |
| 7 | |
| 8 | int main(int argc, char* argv[]) |
| 9 | { |
| 10 | if (!lib_init()) return EXIT_SUCCESS; |
| 11 | const int res = runTests() ? EXIT_SUCCESS : EXIT_FAILURE; |
| 12 | if (!lib_term()) return EXIT_FAILURE; |
| 13 | return res; |
| 14 | } |