diff options
author | Elliot <35050275+Apache-HB@users.noreply.github.com> | 2020-08-18 10:07:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 07:07:59 -0700 |
commit | adfee4460a6a01de975b25e6faf9fd9261238ebd (patch) | |
tree | fd24c125763def814ecd422f6ce860fa00c95159 /test cases/common | |
parent | 7092efabb5a0488b694418c823463048ddbb310c (diff) | |
download | meson-adfee4460a6a01de975b25e6faf9fd9261238ebd.zip meson-adfee4460a6a01de975b25e6faf9fd9261238ebd.tar.gz meson-adfee4460a6a01de975b25e6faf9fd9261238ebd.tar.bz2 |
prevent disabler() object from overwriting arrays (#7484)
* prevent disabler object from overwriting arrays
fixes #7107
* fix failing test
forgot that func() != func(void) in c
Diffstat (limited to 'test cases/common')
-rw-r--r-- | test cases/common/235 disabler array addition/meson.build | 9 | ||||
-rw-r--r-- | test cases/common/235 disabler array addition/test.c | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test cases/common/235 disabler array addition/meson.build b/test cases/common/235 disabler array addition/meson.build new file mode 100644 index 0000000..231f76a --- /dev/null +++ b/test cases/common/235 disabler array addition/meson.build @@ -0,0 +1,9 @@ +project('disabler_inside_array', 'c') + +exes = [] + +exes += library('a', 'test.c') + +exes += library('b', 'test.c', dependencies : disabler()) + +exes += library('c', 'test.c') diff --git a/test cases/common/235 disabler array addition/test.c b/test cases/common/235 disabler array addition/test.c new file mode 100644 index 0000000..e9a7aac --- /dev/null +++ b/test cases/common/235 disabler array addition/test.c @@ -0,0 +1 @@ +int stub(void) { return 0; } |