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

// CHECK: abc
// CHECK-NEXT: def, abc

package main

func main() {
	switch "abc" {
	case "def":
		println("def")
	case "abc":
		println("abc")
	}

	switch "abc" {
	case "def", "abc":
		println("def, abc")
	}
}
OpenPOWER on IntegriCloud