summaryrefslogtreecommitdiff
path: root/misc/cgo/test/issue4054a.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/test/issue4054a.go')
-rw-r--r--misc/cgo/test/issue4054a.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/cgo/test/issue4054a.go b/misc/cgo/test/issue4054a.go
new file mode 100644
index 000000000..2abdac590
--- /dev/null
+++ b/misc/cgo/test/issue4054a.go
@@ -0,0 +1,23 @@
+// Copyright 2012 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 cgotest
+
+/*
+typedef enum {
+ A = 0,
+ B,
+ C,
+ D,
+ E,
+ F,
+ G,
+ H,
+ I,
+ J,
+} issue4054a;
+*/
+import "C"
+
+var issue4054a = []int{C.A, C.B, C.C, C.D, C.E, C.F, C.G, C.H, C.I, C.J}