1// Copyright 2023 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build cgo && darwin
6
7package cgotest
8
9/*
10#include <resolv.h>
11*/
12import "C"
13
14import (
15	"internal/syscall/unix"
16	"unsafe"
17)
18
19// This will cause a compile error when the size of
20// unix.ResState is too small.
21type _ [unsafe.Sizeof(unix.ResState{}) - unsafe.Sizeof(C.struct___res_state{})]byte
22