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

//line /home/xzl/work/golang-1.22/golang-1.22/src/cmd/cgo/internal/testsanitizers/testdata/asan_global2_fail.go:1:1
// Copyright 2022 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

/*
#include <stdlib.h>
#include <stdio.h>

struct ss {
	int *p;
	int len;
	int cap;
};

int test(struct ss *a) {
	struct ss *t = a + 1;
	t->len = 100;          // BOOM
	return t->len;
}
*/
import _ "unsafe"
import "fmt"

var tt  /*line :26:8*/_Ctype_struct_ss /*line :26:19*/

func main() {
	r := func() _Ctype_int{ _cgoBase0 := /*line :29:14*/&tt; _cgo0 := _cgoBase0; _cgoCheckPointer(_cgoBase0, 0 == 0); return /*line :29:18*/_Cfunc_test(_cgo0); }()
	fmt.Println("r value = ", r)
}
