| 1 |
project('test', 'c') |
| 2 |
|
| 3 |
testcase expect_error('executable keyword argument \'dependencies\' was of type array[SubprojectHolder] but should have been array[Dependency | InternalDependency]') |
| 4 |
executable('main', 'main.c', dependencies: subproject('sub')) |
| 5 |
endtestcase |
| 6 |
|
| 7 |
lib = static_library('lib', 'lib.c') |
| 8 |
|
| 9 |
testcase expect_error('executable keyword argument \'dependencies\' was of type array[StaticLibrary] but should have been array[Dependency | InternalDependency]. Tried to use a build_target "lib" as a dependency. This should be in `link_with` or `link_whole` instead.') |
| 10 |
executable('main', 'main.c', dependencies : lib) |
| 11 |
endtestcase |