github.com/prattmic/llgo-embedded@v0.0.0-20150820070356-41cfecea0e1e/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 }