aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/46 subproject/user.c
blob: cfde532d818d447f52a5fc8fa7b6259d17caa4b1 (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(int argc, char **argv) {
    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;
    }
}