issue37479.go 378 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2020 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. //
  5. // +build ignore
  6. package main
  7. /*
  8. typedef struct A A;
  9. typedef struct {
  10. struct A *next;
  11. struct A **prev;
  12. } N;
  13. struct A
  14. {
  15. N n;
  16. };
  17. typedef struct B
  18. {
  19. A* a;
  20. } B;
  21. */
  22. import "C"
  23. type N C.N
  24. type A C.A
  25. type B C.B