Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for barrierslice (0.15 sec)

  1. src/cmd/cgo/internal/testerrors/ptr_test.go

    		body:      `p := C.f15(); p.a = [10]*C.char{new(C.char)}; C.f15b(p)`,
    		fail:      true,
    		expensive: true,
    	},
    	{
    		// Storing a Go pointer into C memory using a slice
    		// copy should fail.
    		name: "barrierslice",
    		c: `#include <stdlib.h>
    		    struct s16 { char *a[10]; };
    		    struct s16 *f16() { return malloc(sizeof(struct s16)); }
    		    void f16b(struct s16 *p) {}`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
Back to top