summaryrefslogtreecommitdiffstats
path: root/test cases/common/244 variable scope/meson.build
blob: e5e79738756f876771a4f35bd4c03c49a425e9b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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'))