From ad9841e8ac74bfcb1814b728a143408e87dd00a7 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 27 Nov 2014 00:06:42 +0000 Subject: Initial commit of llgo. llvm-svn: 222857 --- llgo/test/execution/arrays/compare.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 llgo/test/execution/arrays/compare.go (limited to 'llgo/test/execution/arrays/compare.go') diff --git a/llgo/test/execution/arrays/compare.go b/llgo/test/execution/arrays/compare.go new file mode 100644 index 00000000000..b99d4fd8f8e --- /dev/null +++ b/llgo/test/execution/arrays/compare.go @@ -0,0 +1,18 @@ +// RUN: llgo -o %t %s +// RUN: %t 2>&1 | FileCheck %s + +// CHECK: false +// CHECK-NEXT: true +// CHECK-NEXT: false + +package main + +func main() { + a := [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10} + b := [...]int{10, 1, 2, 3, 4, 5, 6, 7, 8, 9} + c := [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10} + + println(a == b) + println(a == c) + println(b == c) +} -- cgit v1.2.3