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

//line /home/evie/packages/go/go-1.18-0/go/test/fixedbugs/issue36705.go:1:1
// +build cgo,!windows
// run fake-arg-to-force-use-of-go-run

// Copyright 2020 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 <unistd.h>
import _ "unsafe"

import "os"

func main() {
	os.Setenv("FOO", "bar")
	s := ( /*line :18:7*/_Cfunc_GoString /*line :18:16*/)(( /*line :18:18*/_Cfunc_getenv /*line :18:25*/)(( /*line :18:27*/_Cfunc_CString /*line :18:35*/)("FOO")))
	if s != "bar" {
		panic("bad setenv, environment variable only has value \"" + s + "\"")
	}
	os.Unsetenv("FOO")
	s = ( /*line :23:6*/_Cfunc_GoString /*line :23:15*/)(( /*line :23:17*/_Cfunc_getenv /*line :23:24*/)(( /*line :23:26*/_Cfunc_CString /*line :23:34*/)("FOO")))
	if s != "" {
		panic("bad unsetenv, environment variable still has value \"" + s + "\"")
	}
}
