diff options
Diffstat (limited to 'meson/test cases/common/145 recursive linking/3rdorderdeps/main.c.in')
-rw-r--r-- | meson/test cases/common/145 recursive linking/3rdorderdeps/main.c.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meson/test cases/common/145 recursive linking/3rdorderdeps/main.c.in b/meson/test cases/common/145 recursive linking/3rdorderdeps/main.c.in new file mode 100644 index 000000000..643c24694 --- /dev/null +++ b/meson/test cases/common/145 recursive linking/3rdorderdeps/main.c.in @@ -0,0 +1,16 @@ +#include <stdio.h> + +#include "../lib.h" + +SYMBOL_IMPORT int get_@LIBTYPE@@DEPENDENCY@dep_value (void); + +int main(void) { + int val; + + val = get_@LIBTYPE@@DEPENDENCY@dep_value (); + if (val != @VALUE@) { + printf("@LIBTYPE@@DEPENDENCY@ was %i instead of @VALUE@\n", val); + return -1; + } + return 0; +} |