summaryrefslogtreecommitdiffstats
path: root/test cases/common/42 subproject/user.c
blob: 918162266bef20390e316aa96364553e3068aa89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<subdefs.h>
#include<stdio.h>


int main(void) {
    int res;
    printf("Calling into sublib now.\n");
    res = subfunc();
    if(res == 42) {
        printf("Everything is fine.\n");
        return 0;
    } else {
        printf("Something went wrong.\n");
        return 1;
    }
}