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