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

//line /home/evie/packages/go/go-1.18-0/go/misc/cgo/testsanitizers/testdata/asan3_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.
	int c = a[5];        // BOOM
	// We shouldn't get here; asan should stop us first.
	printf("a[5]=%d\n", c);
}
*/
import _ "unsafe"

func main() {
	cIntSlice := [] /*line :21:17*/_Ctype_int /*line :21:22*/{200, 201, 203, 203, 204}
	( /*line :22:2*/_Cfunc_test /*line :22:7*/)(&cIntSlice[0])
}
