blob: ac2033400f813856798091ca223c91ddf52bfd38 [file] [log] [blame]
Josh Bleecher Snyder9b544442014-11-06 15:14:08 -05001// skip
Russ Coxcd22afa2012-09-23 13:16:14 -04002
Russ Coxe3755432012-02-07 16:46:33 -05003// 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
Rob Pike501f0b52012-02-23 18:47:26 +11007// Test the -X facility of the gc linker (6l etc.).
Josh Bleecher Snyder9b544442014-11-06 15:14:08 -05008// This test is run by linkx_run.go.
Rob Pike501f0b52012-02-23 18:47:26 +11009
Russ Coxe3755432012-02-07 16:46:33 -050010package main
11
Russ Cox12795c02015-05-21 14:35:02 -040012import "fmt"
13
Russ Coxe3755432012-02-07 16:46:33 -050014var tbd string
Josh Bleecher Snyderc3dbf562014-09-15 18:16:45 -070015var overwrite string = "dibs"
Russ Coxe3755432012-02-07 16:46:33 -050016
Russ Cox69f0d4c2015-06-29 13:03:11 -040017var b bool
18var x int
19
Russ Coxe3755432012-02-07 16:46:33 -050020func main() {
Russ Cox12795c02015-05-21 14:35:02 -040021 fmt.Println(tbd)
22 fmt.Println(overwrite)
Russ Coxe3755432012-02-07 16:46:33 -050023}