aboutsummaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/internal/cgotest/empty_test.go13
-rw-r--r--src/net/internal/cgotest/resstate.go (renamed from src/net/cgo_unix_cgo_darwin.go)4
2 files changed, 15 insertions, 2 deletions
diff --git a/src/net/internal/cgotest/empty_test.go b/src/net/internal/cgotest/empty_test.go
new file mode 100644
index 0000000000..c4f601d571
--- /dev/null
+++ b/src/net/internal/cgotest/empty_test.go
@@ -0,0 +1,13 @@
+// Copyright 2023 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 cgotest
+
+import "testing"
+
+// Nothing to test here.
+// The test is that the package compiles at all.
+// See resstate.go.
+func Test(t *testing.T) {
+}
diff --git a/src/net/cgo_unix_cgo_darwin.go b/src/net/internal/cgotest/resstate.go
index 40d5e426f2..1b4871109e 100644
--- a/src/net/cgo_unix_cgo_darwin.go
+++ b/src/net/internal/cgotest/resstate.go
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build !netgo && cgo && darwin
+//go:build cgo && darwin
-package net
+package cgotest
/*
#include <resolv.h>