summaryrefslogtreecommitdiff
path: root/tests/posix/string-concat.vala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/posix/string-concat.vala')
-rw-r--r--tests/posix/string-concat.vala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/posix/string-concat.vala b/tests/posix/string-concat.vala
new file mode 100644
index 000000000..ead6abeed
--- /dev/null
+++ b/tests/posix/string-concat.vala
@@ -0,0 +1,8 @@
+unowned string get_foo () {
+ return "foo";
+}
+
+void main () {
+ string s = get_foo () + "bar" + "!";
+ assert (s == "foobar!");
+}