The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
305 B
17 lines
305 B
10 years ago
|
project('string arithmetic', 'c')
|
||
|
|
||
|
if 'foo' + 'bar' != 'foobar'
|
||
|
error('String concatenation is broken')
|
||
|
endif
|
||
|
|
||
|
if 'foo' + 'bar' + 'baz' != 'foobarbaz'
|
||
|
error('Many-string concatenation is broken')
|
||
|
endif
|
||
|
|
||
10 years ago
|
a = 'a'
|
||
|
b = 'b'
|
||
10 years ago
|
|
||
10 years ago
|
if a + b + 'c' != 'abc'
|
||
|
error('String concat with variables is broken.')
|
||
10 years ago
|
endif
|