Debian Codegraph @

test cases/common/153 wrap file should not failed/subprojects/packagefiles/patchfile/0001-Change-foo-to-executable.patch

raw
1 From b79f6cc4a096f6c2888f73b947b652491885896a Mon Sep 17 00:00:00 2001
2 From: Xavier Claessens <[email protected]>
3 Date: Fri, 30 Nov 2018 14:13:47 -0500
4 Subject: [PATCH] Change foo to executable
5
6 ---
7 foo.c | 4 ++++
8 meson.build | 2 +-
9 2 files changed, 5 insertions(+), 1 deletion(-)
10
11 diff --git a/foo.c b/foo.c
12 index 54f9119..468f033 100644
13 --- a/foo.c
14 +++ b/foo.c
15 @@ -1,3 +1,7 @@
16 int dummy_func(void) {
17 return 44;
18 }
19 +
20 +int main(void) {
21 + return dummy_func() == 44 ? 0 : 1;
22 +}
23 diff --git a/meson.build b/meson.build
24 index 318e81d..4a281d9 100644
25 --- a/meson.build
26 +++ b/meson.build
27 @@ -1,2 +1,2 @@
28 project('static lib patchdir', 'c')
29 -libfoo = static_library('foo', 'foo.c')
30 +foo_exe = executable('foo', 'foo.c')
31 --
32 2.17.1
33