diff --git a/misc/cgo/test/issue10303.go b/misc/cgo/test/issue10303.go index ea623d7379..dd19dfbb01 100644 --- a/misc/cgo/test/issue10303.go +++ b/misc/cgo/test/issue10303.go @@ -6,6 +6,8 @@ package cgotest +import "runtime" + /* typedef int *intptr; @@ -39,6 +41,10 @@ import ( ) func test10303(t *testing.T, n int) { + if runtime.Compiler == "gccgo" { + t.Skip("gccgo permits C pointers on the stack") + } + // Run at a few different stack depths just to avoid an unlucky pass // due to variables ending up on different pages. if n > 0 {