summaryrefslogtreecommitdiff
path: root/test/linkx.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-02-07 16:46:33 -0500
committerRuss Cox <rsc@golang.org>2012-02-07 16:46:33 -0500
commite3755434b8790288a1d48ae3ebf9f4e49c881849 (patch)
tree808cb138d20a3bcac7d95702de005cfeb2dee5e2 /test/linkx.go
parent2cc58e93d6f663af52bcdd4974d319ebe843f764 (diff)
downloadgo-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.go15
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)
+ }
+}