issue11097b.go 278 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. p := new(C.enum_test) // ERROR HERE
  11. _ = p
  12. }