blob: e5cad584aa0d407e91411c7324baf0fafb512604 [file] [log] [blame]
Rémy Oudompheng2ece2f52012-02-18 22:15:42 +01001// run
Robert Griesemer71f5fa32010-03-29 10:34:16 -07002
3// Copyright 2010 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
Péter Surányi9b6ccb12015-02-06 21:44:39 +09007// Test case for http://golang.org/issue/700
Robert Griesemer71f5fa32010-03-29 10:34:16 -07008
9package main
10
11import "os"
12
13func f() (e int) {
14 _ = &e
15 return 999
16}
17
18func main() {
19 if f() != 999 {
20 os.Exit(1)
21 }
22}