You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
garble/testdata/scripts
Nicholas Jones ecbcc61a62
handle embedded struct fields with universe scope
Whilst it may not be particularly common, it is legal to embed fields
where the type has universe scope (e.g. int, error, etc). This can
cause a panic in 2 difference places:

- When embedding `error`, a named type is resolved but the package is
nil. The call to `pkg.Name()` results in a panic
- When embedding a basic type such as `int`, no named type is resolved
at all. The call to `namedType(obj.Type()).Obj()` results in a panic

I'm assuming it is OK to return early when a named type cannot be
resolved.. we could let it continue but I think `pkg` should be set to
nil to be correct, so it'd end up returning straight away anyway.
5 years ago
..
asm.txt reduce unnecessary std imports in tests 5 years ago
basic.txt sto pusing -toolexec directly in the tests 5 years ago
cgo.txt reduce unnecessary std imports in tests 5 years ago
debugdir.txt allow easy inpection of garbled code 5 years ago
help.txt clarify usage text, add help flags 5 years ago
implement.txt start supporting asm functions better 5 years ago
imports.txt blacklist struct fields with reflection too 5 years ago
ldflags.txt reduce unnecessary std imports in tests 5 years ago
modinfo.txt reduce unnecessary std imports in tests 5 years ago
plugin.txt support building ad-hoc plugin packages 5 years ago
strings.txt add basic literal obfuscation, starting with strings 5 years ago
syntax.txt handle embedded struct fields with universe scope 5 years ago
test.txt testdata: add sections to scripts/test.txt 5 years ago