summaryrefslogtreecommitdiffstats
path: root/llgo/test/execution/switch/empty.go
blob: 4d20679e4b1a68d993de18c8c17be880525da6d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: llgo -o %t %s
// RUN: %t 2>&1 | FileCheck %s

// CHECK: f was called

package main

func f() int {
	println("f was called")
	return 123
}

func main() {
	switch f() {
	}
}
OpenPOWER on IntegriCloud