diff options
Diffstat (limited to 'test cases/common/244 variable scope/meson.build')
-rw-r--r-- | test cases/common/244 variable scope/meson.build | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test cases/common/244 variable scope/meson.build b/test cases/common/244 variable scope/meson.build new file mode 100644 index 0000000..e5e7973 --- /dev/null +++ b/test cases/common/244 variable scope/meson.build @@ -0,0 +1,15 @@ +project('variable scope') + +x = 1 + +assert(is_variable('x')) + +assert(get_variable('x') == 1) + +set_variable('x', 10) + +assert(get_variable('x') == 10) + +unset_variable('x') + +assert(not is_variable('x')) |