diff options
author | Russ Cox <rsc@golang.org> | 2013-10-15 14:25:29 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2013-10-15 14:25:29 -0400 |
commit | 74f639176da060afc1fa939f7165310abbbb707f (patch) | |
tree | 35121f026e0906f1a943394bdc7b9139999df525 | |
parent | 94bd34fe50a7ea7e913b58b3a278fc8dc36db1b3 (diff) | |
download | go-74f639176da060afc1fa939f7165310abbbb707f.tar.gz go-74f639176da060afc1fa939f7165310abbbb707f.zip |
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
-rw-r--r-- | misc/cgo/test/issue6506.go | 17 |
1 files changed, 0 insertions, 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 <stdlib.h> #include <string.h> - -// 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 } |