lab.nexedi.com/kirr/go123@v0.0.0-20240207185015-8299741fa871/tracing/cmd/gotrace/testdata/src/a/pkg1_cgo/pkg1c.go (about)

     1  package pkg1
     2  
     3  /*
     4  #include <stdio.h>
     5  
     6  void hello() {
     7  	printf("Hello World (from C)\n");
     8  }
     9  */
    10  import "C"
    11  
    12  // trace event defined in a cgo file
    13  //trace:event traceCHello()
    14  
    15  func Hello() {
    16  	traceCHello()
    17  	C.hello()
    18  }