summaryrefslogtreecommitdiffstats
path: root/llgo/test/execution/strings/add.go
blob: daf69215591253de9a445f8608516c9258ea23fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: llgo -o %t %s
// RUN: %t 2>&1 | FileCheck %s

// CHECK: 3 3 6
// CHECK-NEXT: abc123

package main

func main() {
	a := "abc"
	b := "123"
	c := a + b
	println(len(a), len(b), len(c))
	println(c)
}
OpenPOWER on IntegriCloud