blob: 59567de49faa2eefcbbb78d59e93461c189e1455 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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
a = 'a'
b = 'b'
if a + b + 'c' != 'abc'
error('String concat with variables is broken.')
endif
|