cgo: don't crash on import "C" without comment

This doesn't make a lot of sense, but we shouldn't crash on it.
This commit is contained in:
Ayke van Laethem
2019-05-10 17:28:01 +02:00
committed by Ron Evans
parent 99587fe073
commit 4619207f99
2 changed files with 8 additions and 2 deletions
+2
View File
@@ -7,6 +7,8 @@ int mul(int, int);
*/
import "C"
import "C"
import "unsafe"
func main() {