summaryrefslogtreecommitdiffstats
path: root/llgo/test/execution/interfaces/comparei2v.go
diff options
context:
space:
mode:
Diffstat (limited to 'llgo/test/execution/interfaces/comparei2v.go')
-rw-r--r--llgo/test/execution/interfaces/comparei2v.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/llgo/test/execution/interfaces/comparei2v.go b/llgo/test/execution/interfaces/comparei2v.go
new file mode 100644
index 00000000000..6547360e60e
--- /dev/null
+++ b/llgo/test/execution/interfaces/comparei2v.go
@@ -0,0 +1,13 @@
+// RUN: llgo -o %t %s
+// RUN: %t 2>&1 | FileCheck %s
+
+// CHECK: true
+// CHECK-NEXT: false
+
+package main
+
+func main() {
+ var x interface{} = 123
+ println(x == 123)
+ println(x != 123)
+}
OpenPOWER on IntegriCloud