diff options
Diffstat (limited to 'meson/test cases/common/74 file object/subdir1')
-rw-r--r-- | meson/test cases/common/74 file object/subdir1/lib.c | 3 | ||||
-rw-r--r-- | meson/test cases/common/74 file object/subdir1/meson.build | 7 | ||||
-rw-r--r-- | meson/test cases/common/74 file object/subdir1/prog.c | 13 |
3 files changed, 23 insertions, 0 deletions
diff --git a/meson/test cases/common/74 file object/subdir1/lib.c b/meson/test cases/common/74 file object/subdir1/lib.c new file mode 100644 index 000000000..8c13c2126 --- /dev/null +++ b/meson/test cases/common/74 file object/subdir1/lib.c @@ -0,0 +1,3 @@ +int func(void) { + return 1; +} diff --git a/meson/test cases/common/74 file object/subdir1/meson.build b/meson/test cases/common/74 file object/subdir1/meson.build new file mode 100644 index 000000000..f5066f00f --- /dev/null +++ b/meson/test cases/common/74 file object/subdir1/meson.build @@ -0,0 +1,7 @@ +prog1 = files('prog.c') +lib1 = files('lib.c') + +test('subdir0', executable('subdir0', prog0, lib1), should_fail : true) +test('subdir1', executable('subdir1', prog1, lib0), should_fail : true) + +test('subdir2', executable('subdir2', prog1, lib1))
\ No newline at end of file diff --git a/meson/test cases/common/74 file object/subdir1/prog.c b/meson/test cases/common/74 file object/subdir1/prog.c new file mode 100644 index 000000000..38d13d242 --- /dev/null +++ b/meson/test cases/common/74 file object/subdir1/prog.c @@ -0,0 +1,13 @@ +#include<stdio.h> + +int func(void); + +int main(void) { + if(func() == 1) { + printf("Iz success.\n"); + } else { + printf("Iz fail.\n"); + return 1; + } + return 0; +} |