summaryrefslogtreecommitdiffstats
path: root/llgo/test/execution/interfaces/import.go
diff options
context:
space:
mode:
Diffstat (limited to 'llgo/test/execution/interfaces/import.go')
-rw-r--r--llgo/test/execution/interfaces/import.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/llgo/test/execution/interfaces/import.go b/llgo/test/execution/interfaces/import.go
new file mode 100644
index 00000000000..3305ee6a849
--- /dev/null
+++ b/llgo/test/execution/interfaces/import.go
@@ -0,0 +1,16 @@
+// RUN: llgo -o %t %s
+// RUN: %t 2>&1 | FileCheck %s
+
+package main
+
+import "syscall"
+
+type Signal interface {
+ Signal()
+}
+
+func main() {
+ var s Signal = syscall.SIGINT
+ // CHECK: ({{.*}},{{.*}})
+ println(s)
+}
OpenPOWER on IntegriCloud