1// Copyright 2019 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
5package lib
6
7/*
8#cgo darwin CFLAGS: -D__MAC_OS_X_VERSION_MAX_ALLOWED=101450
9#cgo darwin LDFLAGS: -framework Foundation -framework AppKit
10#include "stdlib.h"
11int function(void);
12*/
13import "C"
14import "fmt"
15
16func DoC() {
17	C.function()
18	fmt.Println("called c function")
19}
20