Josh Bleecher Snyder | 9b54444 | 2014-11-06 15:14:08 -0500 | [diff] [blame] | 1 | // skip |
Russ Cox | cd22afa | 2012-09-23 13:16:14 -0400 | [diff] [blame] | 2 | |
Russ Cox | e375543 | 2012-02-07 16:46:33 -0500 | [diff] [blame] | 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 | |
Rob Pike | 501f0b5 | 2012-02-23 18:47:26 +1100 | [diff] [blame] | 7 | // Test the -X facility of the gc linker (6l etc.). |
Josh Bleecher Snyder | 9b54444 | 2014-11-06 15:14:08 -0500 | [diff] [blame] | 8 | // This test is run by linkx_run.go. |
Rob Pike | 501f0b5 | 2012-02-23 18:47:26 +1100 | [diff] [blame] | 9 | |
Russ Cox | e375543 | 2012-02-07 16:46:33 -0500 | [diff] [blame] | 10 | package main |
| 11 | |
Russ Cox | 12795c0 | 2015-05-21 14:35:02 -0400 | [diff] [blame] | 12 | import "fmt" |
| 13 | |
Russ Cox | e375543 | 2012-02-07 16:46:33 -0500 | [diff] [blame] | 14 | var tbd string |
Josh Bleecher Snyder | c3dbf56 | 2014-09-15 18:16:45 -0700 | [diff] [blame] | 15 | var overwrite string = "dibs" |
Russ Cox | e375543 | 2012-02-07 16:46:33 -0500 | [diff] [blame] | 16 | |
Russ Cox | 69f0d4c | 2015-06-29 13:03:11 -0400 | [diff] [blame] | 17 | var b bool |
| 18 | var x int |
| 19 | |
Russ Cox | e375543 | 2012-02-07 16:46:33 -0500 | [diff] [blame] | 20 | func main() { |
Russ Cox | 12795c0 | 2015-05-21 14:35:02 -0400 | [diff] [blame] | 21 | fmt.Println(tbd) |
| 22 | fmt.Println(overwrite) |
Russ Cox | e375543 | 2012-02-07 16:46:33 -0500 | [diff] [blame] | 23 | } |