github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/test/execution/switch/strings.go (about) 1 // RUN: llgo -o %t %s 2 // RUN: %t 2>&1 | FileCheck %s 3 4 // CHECK: abc 5 // CHECK-NEXT: def, abc 6 7 package main 8 9 func main() { 10 switch "abc" { 11 case "def": 12 println("def") 13 case "abc": 14 println("abc") 15 } 16 17 switch "abc" { 18 case "def", "abc": 19 println("def, abc") 20 } 21 }