issue11097a.go 279 B

123456789101112131415
  1. // Copyright 2015 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package main
  5. /*
  6. //enum test { foo, bar };
  7. */
  8. import "C"
  9. func main() {
  10. var a = C.enum_test(1) // ERROR HERE
  11. _ = a
  12. }