Skip to content

Commit

Permalink
misc/cgo/test: skip issue3261 test on darwin/arm64
Browse files Browse the repository at this point in the history
Because there is no libgcc.

Change-Id: I3b3f80791a1db4c2b7318f81a115972cd2237f07
Signed-off-by: Shenghou Ma <[email protected]>
Reviewed-on: https://go-review.googlesource.com/8786
Reviewed-by: David Crawshaw <[email protected]>
  • Loading branch information
minux authored and crawshaw committed Apr 16, 2015
1 parent bfd441f commit 110fa22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions misc/cgo/test/issue3261.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ int vabs(int x) {
puts("testLibgcc is disabled on ARM because 5l cannot handle thumb library.");
return (x < 0) ? -x : x;
}
#elif defined(__arm64__) && defined(__clang__)
#include <stdio.h>
int vabs(int x) {
puts("testLibgcc is disabled on ARM64 with clang due to lack of libgcc.");
return (x < 0) ? -x : x;
}
#else
int __absvsi2(int); // dummy prototype for libgcc function
// we shouldn't name the function abs, as gcc might use
Expand Down

0 comments on commit 110fa22

Please sign in to comment.