mirror of
https://github.com/golang/go
synced 2024-11-14 09:10:27 -07:00
7dbbb5bacf
Similarly to EGLDisplay, EGLConfig is declared as a pointer but may contain non-pointer values. I believe this is the root cause of https://todo.sr.ht/~eliasnaur/gio/121. Change-Id: I412c4fbc2eef4aa028534d68bda95db98e3a365d Reviewed-on: https://go-review.googlesource.com/c/go/+/235817 Run-TryBot: Elias Naur <mail@eliasnaur.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
22 lines
393 B
Go
22 lines
393 B
Go
// Copyright 2018 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package issue27054
|
|
|
|
/*
|
|
#include "egl.h"
|
|
*/
|
|
import "C"
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func Test27054(t *testing.T) {
|
|
var (
|
|
// Note: 0, not nil. That makes sure we use uintptr for these types.
|
|
_ C.EGLDisplay = 0
|
|
_ C.EGLConfig = 0
|
|
)
|
|
}
|