(root)/
gcc-13.2.0/
libgo/
misc/
cgo/
test/
issue20910.c
       1  // Copyright 2017 The Go Authors. All rights reserved.
       2  // Use of this source code is governed by a BSD-style
       3  // license that can be found in the LICENSE file.
       4  
       5  #include <assert.h>
       6  #include <stdlib.h>
       7  #include <string.h>
       8  #include "_cgo_export.h"
       9  
      10  /* Test calling a Go function with multiple return values.  */
      11  
      12  void
      13  callMulti(void)
      14  {
      15  	struct multi_return result = multi();
      16  	assert(strcmp(result.r0, "multi") == 0);
      17  	assert(result.r1 == 0);
      18  	free(result.r0);
      19  }