blob: c3035f6a915911840fdb9b4a7bf08ae15ca2e7da [file] [log] [blame]
Anthony Martin564a1f32012-02-29 13:55:50 -08001// compile
2
3// Copyright 2012 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
Brad Fitzpatrick2ae77372015-07-10 17:17:11 -06007// https://golang.org/issue/3119
Anthony Martin564a1f32012-02-29 13:55:50 -08008
9package main
10
11import "fmt"
12
13func main() {
14 s := "hello"
15 fmt.Println(s == "")
16 fmt.Println(s + "world" == "world")
17}