aboutsummaryrefslogtreecommitdiff
path: root/go/ssa/ssautil/switch_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/ssa/ssautil/switch_test.go')
-rw-r--r--go/ssa/ssautil/switch_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/ssa/ssautil/switch_test.go b/go/ssa/ssautil/switch_test.go
index a68f4644e..86d5bfb26 100644
--- a/go/ssa/ssautil/switch_test.go
+++ b/go/ssa/ssautil/switch_test.go
@@ -15,8 +15,8 @@ import (
)
func TestSwitches(t *testing.T) {
- var conf loader.Config
- f, err := conf.ParseFile("testdata/switches.go", nil, parser.ParseComments)
+ conf := loader.Config{ParserMode: parser.ParseComments}
+ f, err := conf.ParseFile("testdata/switches.go", nil)
if err != nil {
t.Error(err)
return