tests: Add a test for a target with no sources

Since this was broken for a long time, we should have a test for it.
This commit is contained in:
Dylan Baker 2022-08-25 09:11:27 -07:00 committed by Xavier Claessens
parent 91206aaeb0
commit 37663da83e
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
project('no sources', 'c')
static_library('no sources')

View File

@ -0,0 +1,7 @@
{
"stdout": [
{
"line": "WARNING: Build target no sources has no sources. This was never supposed to be allowed but did because of a bug, support will be removed in a future release of Meson"
}
]
}