diff options
author | Russ Cox <rsc@golang.org> | 2012-02-07 16:46:33 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2012-02-07 16:46:33 -0500 |
commit | e3755434b8790288a1d48ae3ebf9f4e49c881849 (patch) | |
tree | 808cb138d20a3bcac7d95702de005cfeb2dee5e2 /test/linkx.go | |
parent | 2cc58e93d6f663af52bcdd4974d319ebe843f764 (diff) | |
download | go-git-e3755434b8790288a1d48ae3ebf9f4e49c881849.tar.gz |
5l, 6l, 8l: implement -X flag
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5643050
Diffstat (limited to 'test/linkx.go')
-rw-r--r-- | test/linkx.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/linkx.go b/test/linkx.go new file mode 100644 index 0000000000..caa815a391 --- /dev/null +++ b/test/linkx.go @@ -0,0 +1,15 @@ +// $G $D/$F.go && $L -X main.tbd hello $F.$A && ./$A.out + +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package main + +var tbd string + +func main() { + if tbd != "hello" { + println("BUG: test/linkx", len(tbd), tbd) + } +} |