make detection of reflect more robust

It now works with variables and composite type expressions too.
pull/25/head
Daniel Martí 5 years ago committed by lu4p
parent f63551f17b
commit 2297a8ac92

@ -3,7 +3,6 @@ exec ./main
cmp stdout main.stdout
! binsubstr main$exe 'ImportedVar' 'ImportedConst' 'ImportedFunc' 'ImportedType' 'main.go' 'imported.go'
binsubstr main$exe 'ImportedAPI'
[short] stop # checking that the build is reproducible is slow
@ -24,7 +23,6 @@ package main
import (
"fmt"
"reflect"
_ "unsafe"
"test/main/imported"

Loading…
Cancel
Save