summaryrefslogtreecommitdiffstats
path: root/llgo/test/execution/switch/branch.go
blob: a7bca9a7bed4ca32db81164fdb7a4aa30e64f66a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// RUN: llgo -o %t %s
// RUN: %t 2>&1 | FileCheck %s

// CHECK: true
// CHECK-NEXT: false

package main

func main() {
	switch true {
	default:
		break
		println("default")
	}

	switch true {
	case true:
		println("true")
		fallthrough
	case false:
		println("false")
	}
}
OpenPOWER on IntegriCloud