summaryrefslogtreecommitdiff
path: root/libgo/misc/cgo/test/test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/misc/cgo/test/test.go')
-rw-r--r--libgo/misc/cgo/test/test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/libgo/misc/cgo/test/test.go b/libgo/misc/cgo/test/test.go
index b0148995fe5..8c69ad91ac7 100644
--- a/libgo/misc/cgo/test/test.go
+++ b/libgo/misc/cgo/test/test.go
@@ -897,6 +897,10 @@ static uint16_t issue31093F(uint16_t v) { return v; }
// issue 32579
typedef struct S32579 { unsigned char data[1]; } S32579;
+
+// issue 38649
+// Test that #define'd type aliases work.
+#define netbsd_gid unsigned int
*/
import "C"
@@ -2192,3 +2196,11 @@ func test32579(t *testing.T) {
t.Errorf("&s[0].data[0] failed: got %d, want %d", s[0].data[0], 1)
}
}
+
+// issue 38649
+
+var issue38649 C.netbsd_gid = 42
+
+// issue 39877
+
+var issue39877 *C.void = nil