From: Russ Cox Date: Tue, 15 Oct 2013 18:25:29 +0000 (-0400) Subject: misc/cgo/test: cut out non-standard functions X-Git-Tag: go1.2rc2~18 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=74f639176da060afc1fa939f7165310abbbb707f;p=gostls13.git misc/cgo/test: cut out non-standard functions Otherwise the link fails. Fixes build. TBR=golang-dev CC=golang-dev https://golang.org/cl/14483050 --- diff --git a/misc/cgo/test/issue6506.go b/misc/cgo/test/issue6506.go index 5c1d2a864b..b79e242e9c 100644 --- a/misc/cgo/test/issue6506.go +++ b/misc/cgo/test/issue6506.go @@ -10,18 +10,6 @@ package cgotest /* #include #include - -// These functions are clang builtins but not standard on other systems. -// Give them prototypes so that this test can be compiled on other systems. -// One of the great things about this bug is that even with these prototypes -// clang still generates the wrong debug information. - -void *alloca(size_t); -void bzero(void*, size_t); -int bcmp(const void*, const void*, size_t); -int strncasecmp(const char*, const char*, size_t n); -size_t strlcpy(char*, const char*, size_t); -size_t strlcat(char*, const char*, size_t); */ import "C" @@ -44,10 +32,5 @@ func test6506() { x = C.strspn(nil, nil) C.memset(nil, 0, x) x = C.strlen(nil) - C.alloca(x) - C.bzero(nil, x) - C.strncasecmp(nil, nil, x) - x = C.strlcpy(nil, nil, x) - x = C.strlcat(nil, nil, x) _ = x }