diff options
| author | Volker Weißmann <volker.weissmann@gmx.de> | 2025-07-31 16:52:35 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-08-10 20:26:58 +0300 |
| commit | 4b33c9cdb64f360c2ee19691baedfa4d0e32378f (patch) | |
| tree | 672ce415e6a099d683d97b90b5c61bc04165dd6b /test cases/unit | |
| parent | f2c851b6f0452cad8bbbc5838c9a0f91aecdf593 (diff) | |
| download | meson-4b33c9cdb64f360c2ee19691baedfa4d0e32378f.tar.gz | |
rewriter: Accept UnknownValue() in more places
Fixes #14840
Diffstat (limited to 'test cases/unit')
| -rw-r--r-- | test cases/unit/56 introspection/meson.build | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test cases/unit/56 introspection/meson.build b/test cases/unit/56 introspection/meson.build index 568d5ccd7..c7856fe2e 100644 --- a/test cases/unit/56 introspection/meson.build +++ b/test cases/unit/56 introspection/meson.build @@ -58,6 +58,21 @@ test('test case 1', t1) test('test case 2', t2, depends: t3) benchmark('benchmark 1', t3, args: [cus1, cus2, cus3]) +### BEGIN: Stuff to test the handling of `UnknownValue` +var_1 = 1 +var_2 = 2 +unknown_var = 'var_1' +if host_machine.system() == 'windows' + unknown_var = 'var_2' +endif +# The IntrospectionInterpreter can't know the value of unknown_var and use the `UnknownValue` class. + +message(get_variable(unknown_var)) + +dependency(unknown_var, version: [unknown_var], required: false) +dependency(unknown_var, version: unknown_var, required: false) +### END: Stuff to test the handling of `UnknownValue` + ### Stuff to test the AST JSON printer foreach x : ['a', 'b', 'c'] if x == 'a' |
