Skip to content

cmd/cgo: no atexit support #4221

Closed
Closed
@gopherbot

Description

@gopherbot

by eduard.castany:

What steps will reproduce the problem?
package main

/*
#include <stdio.h>
void print() {
    printf("yuhu\nyuhu");
}
*/
import "C"

func main() {
    C.print()
}

What is the expected output?
yuhu
yuhu

What do you see instead?
yuhu

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
linux 64

Which version are you using?  (run 'go version')
go version devel +2c2052f38c3c Tue Oct 09 09:55:57 2012 +0400

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions