aboutsummaryrefslogtreecommitdiff
path: root/libphobos/testsuite/libphobos.shared/linkD.c
blob: 657c9e8f9d3f02a3f957e2c13c5565b29b98e520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdlib.h>
#include <assert.h>

extern int runTests(void);
extern int lib_init(void);
extern int lib_term(void);

int main(int argc, char* argv[])
{
    if (!lib_init()) return EXIT_SUCCESS;
    const int res = runTests() ? EXIT_SUCCESS : EXIT_FAILURE;
    if (!lib_term()) return EXIT_FAILURE;
    return res;
}