Fixes #4114.
R=golang-dev, iant, rsc, iant, devon.odell
CC=golang-dev
https://golang.org/cl/
6553050
t.Go = name // publish before recursive calls
goIdent[name.Name] = name
switch dt.Kind {
- case "union", "class":
+ case "class", "union":
t.Go = c.Opaque(t.Size)
if t.C.Empty() {
t.C.Set("typeof(unsigned char[%d])", t.Size)
}
+ t.Align = 1 // TODO: should probably base this on field alignment.
typedef[name.Name] = t
case "struct":
g, csyntax, align := c.Struct(dt, pos)