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