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

//line /home/evie/packages/go/go-1.18-0/go/misc/cgo/testsanitizers/testdata/asan4_fail.go:1:1
// Copyright 2021 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>

void test(int* a) {
	// Access Go pointer out of bounds.
	a[3] = 300;          // BOOM
	// We shouldn't get here; asan should stop us first.
	printf("a[3]=%d\n", a[3]);
}*/
import _ "unsafe"

func main() {
	var cIntArray [2] /*line :20:19*/_Ctype_int /*line :20:24*/
	( /*line :21:2*/_Cfunc_test /*line :21:7*/)(&cIntArray[0]) // cIntArray is moved to heap.
}
