diff options
Diffstat (limited to 'test/fixedbugs/bug465.dir/a.go')
-rw-r--r-- | test/fixedbugs/bug465.dir/a.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/fixedbugs/bug465.dir/a.go b/test/fixedbugs/bug465.dir/a.go index c5d410de4..a9a8614bb 100644 --- a/test/fixedbugs/bug465.dir/a.go +++ b/test/fixedbugs/bug465.dir/a.go @@ -59,3 +59,18 @@ func F7() int { } return 0 } + +func F8() int { + if a := (&T{1, 1}); a != nil { + return 1 + } + return 0 +} + +func F9() int { + var a *T + if a = (&T{1, 1}); a != nil { + return 1 + } + return 0 +} |