Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for clobber_stack (0.09 sec)

  1. src/cmd/cgo/internal/test/issue5548_c.c

    // license that can be found in the LICENSE file.
    
    #include "_cgo_export.h"
    
    static void clobber_stack() {
    	volatile char a[1024];
    	int i;
    	for(i = 0; i < sizeof a; i++)
    		a[i] = 0xff;
    }
    
    static int call_go() {
    	GoString s;
    	s.p = "test";
    	s.n = 4;
    	return issue5548FromC(s, 42);
    }
    
    int issue5548_in_c() {
    	clobber_stack();
    	return call_go();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 454 bytes
    - Viewed (0)
Back to top