aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/84 declare dep/main.c
blob: 4ad9d2a9ac128864f7a6aadb74c15158c036ca24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include<entity.h>
#include<stdio.h>

#ifndef USING_ENT
#error "Entity use flag not used for compilation."
#endif

int main(int argc, char **argv) {
    if(entity_func1() != 5) {
        printf("Error in func1.\n");
        return 1;
    }
    if(entity_func2() != 9) {
        printf("Error in func2.\n");
        return 2;
    }
    return 0;
}