github.com/axw/llgo@v0.0.0-20160805011314-95b5fe4dca20/test/llgoi/vars.test (about) 1 // RUN: llgoi < %s 2>&1 | FileCheck %s 2 3 x := 3 4 x 5 // CHECK: 3 6 7 x + x 8 // CHECK: 6 9 10 x * x 11 // CHECK: 9 12 13 x = 4 14 x + x 15 // CHECK: 8 16 17 x := true 18 // CHECK: cannot assign {{.*}} to x (variable of type int) 19 20 x, y := func() (int, int) { 21 return 1, 2 22 }() 23 // CHECK: 1 24 // CHECK: 2 25 26 x, _ = func() (int, int) { 27 return 3, 4 28 }() 29 x 30 // CHECK: 3