Skip to content

Commit

Permalink
cxgo: Add new test case for a discovered bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Nov 21, 2022
1 parent 59e2620 commit a739cda
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pointers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1220,6 +1220,28 @@ int* foo;
`,
exp: `
var foo []int32
`,
configFuncs: []configFunc{
withIdent(IdentConfig{
Name: "foo",
Type: HintSlice,
}),
},
},
{
name: "slice override global struct",
skip: true, // FIXME
src: `
struct bar {
int a;
};
struct bar* foo;
`,
exp: `
type bar struct {
A int32
}
var foo []bar
`,
configFuncs: []configFunc{
withIdent(IdentConfig{
Expand Down

0 comments on commit a739cda

Please sign in to comment.