github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/test/execution/arrays/compare.go (about)

     1  // RUN: llgo -o %t %s
     2  // RUN: %t 2>&1 | FileCheck %s
     3  
     4  // CHECK: false
     5  // CHECK-NEXT: true
     6  // CHECK-NEXT: false
     7  
     8  package main
     9  
    10  func main() {
    11  	a := [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
    12  	b := [...]int{10, 1, 2, 3, 4, 5, 6, 7, 8, 9}
    13  	c := [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
    14  
    15  	println(a == b)
    16  	println(a == c)
    17  	println(b == c)
    18  }