diff options
Diffstat (limited to 'src/go/printer/testdata/expressions.input')
-rw-r--r-- | src/go/printer/testdata/expressions.input | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/go/printer/testdata/expressions.input b/src/go/printer/testdata/expressions.input index f4d20fa0f..d20a59350 100644 --- a/src/go/printer/testdata/expressions.input +++ b/src/go/printer/testdata/expressions.input @@ -95,6 +95,11 @@ func _() { _ = Open(dpath + "/file", O_WRONLY | O_CREAT, 0666) _ = int(c0&_Mask4)<<18 | int(c1&_Maskx)<<12 | int(c2&_Maskx)<<6 | int(c3&_Maskx) + // test case for issue 8021 + // want: + // ([]bool{})[([]int{})[((1)+(((1)+((((1)*(((1)+(1))+(1)))+(1))*(1)))+(1)))]] + _ = ([]bool{})[([]int{})[((1) + (((((1) + (((((((1) * (((((1) + (1))) + (1))))) + (1))) * (1))))) + (1))))]] + // the parser does not restrict expressions that may appear as statements true 42 |