misc/cgo/test: skip test7978 if the compiler is too old

Not for upstream.