From 74f639176da060afc1fa939f7165310abbbb707f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 15 Oct 2013 14:25:29 -0400 Subject: [PATCH] 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 --- misc/cgo/test/issue6506.go | 17 ----------------- 1 file changed, 17 deletions(-) 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 } -- 2.50.0