// Code generated by cmd/cgo; DO NOT EDIT.

//line /home/evie/packages/go/go-1.18-0/go/src/runtime/testdata/testprogcgo/deadlock.go:1:1
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

/*
char *geterror() {
	return "cgo error";
}
*/
import _ "unsafe"
import (
	"fmt"
)

func init() {
	register("CgoPanicDeadlock", CgoPanicDeadlock)
}

type cgoError struct{}

func (cgoError) Error() string {
	fmt.Print("") // necessary to trigger the deadlock
	return ( /*line :25:9*/_Cfunc_GoString /*line :25:18*/)(( /*line :25:20*/_Cfunc_geterror /*line :25:29*/)())
}

func CgoPanicDeadlock() {
	panic(cgoError{})
}
