1
0
mirror of https://github.com/golang/go synced 2024-11-24 17:50:15 -07:00
go/misc/cgo/stdio/testdata/hello.go
Bryan C. Mills c6611b2f7e misc/cgo/stdio: fix tests in module mode
Updates #30228

Change-Id: I4d213c6fe68c47ccb877f13b55128e035f76a26b
Reviewed-on: https://go-review.googlesource.com/c/163421
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2019-02-24 00:40:20 +00:00

16 lines
309 B
Go

// run -tags=use_go_run
// Copyright 2009 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.
// +build test_run
package main
import "cgostdio/stdio"
func main() {
stdio.Stdout.WriteString(stdio.Greeting + "\n")
}