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

//line /tmp/cgotest1450719974/src/cgotest/issue9026/issue9026.go:1:1
package issue9026

// This file appears in its own package since the assertion tests the
// per-package counter used to create fresh identifiers.

/*
typedef struct { int i; } git_merge_file_input;

typedef struct { int j; } git_merge_file_options;

void git_merge_file(
        git_merge_file_input *in,
        git_merge_file_options *opts) {}
*/
import _ "unsafe"
import (
	"fmt"
	"testing"
)

func Test(t *testing.T) {
	var in  /*line :22:9*/_Ctype_git_merge_file_input /*line :22:31*/
	var opts * /*line :23:12*/_Ctype_git_merge_file_options /*line :23:36*/
	( /*line :24:2*/_Cfunc_git_merge_file /*line :24:17*/)(&in, opts)

	// Test that the generated type names are deterministic.
	// (Previously this would fail about 10% of the time.)
	//
	// Brittle: the assertion may fail spuriously when the algorithm
	// changes, but should remain stable otherwise.
	got := fmt.Sprintf("%T %T", in, opts)
	want := "issue9026._Ctype_struct___0 *issue9026._Ctype_struct___1"
	if got != want {
		t.Errorf("Non-deterministic type names: got %s, want %s", got, want)
	}
}
