aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/62 string arithmetic/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/62 string arithmetic/meson.build')
-rw-r--r--test cases/common/62 string arithmetic/meson.build16
1 files changed, 16 insertions, 0 deletions
diff --git a/test cases/common/62 string arithmetic/meson.build b/test cases/common/62 string arithmetic/meson.build
new file mode 100644
index 0000000..59567de
--- /dev/null
+++ b/test cases/common/62 string arithmetic/meson.build
@@ -0,0 +1,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