summaryrefslogtreecommitdiffstats
path: root/test cases/common/181 same target name flat layout/main.c
blob: 6f02aeb821daa158a7fde58e01c7db1434fc8507 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>

int meson_test_main_foo(void);
int meson_test_subproj_foo(void);

int main(void) {
    if (meson_test_main_foo() != 10) {
        printf("Failed meson_test_main_foo\n");
        return 1;
    }
    if (meson_test_subproj_foo() != 20) {
        printf("Failed meson_test_subproj_foo\n");
        return 1;
    }
    return 0;
}