aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/oldlink/internal/ld/testdata/issue32233/lib/lib.go
blob: 514b9b9a4ab7f466120e4955bf40686f2eb2e19a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2019 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 lib

/*
#cgo darwin CFLAGS: -D__MAC_OS_X_VERSION_MAX_ALLOWED=101450
#cgo darwin LDFLAGS: -framework Foundation -framework AppKit
#include "stdlib.h"
int function(void);
*/
import "C"
import "fmt"

func DoC() {
	C.function()
	fmt.Println("called c function")
}