Sign in
rust
/
rust-lang
/
llvm-project
/
8265e390e740f0fb7464f7c20bd38d55ee145dd4
/
.
/
llgo
/
test
/
execution
/
switch
/
default.go
blob: 2ae8509707017412241a71d56474e5322bcfbbce [
file
] [
log
] [
blame
]
// RUN: llgo -o %t %s
// RUN: %t 2>&1 | FileCheck %s
// CHECK: default
// CHECK-NEXT: true
package main
func main() {
switch true {
default:
println("default")
}
switch {
default:
println("default")
case true:
println("true")
}
}