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