mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-08 18:51:19 +00:00
386b69f473
* fix incorrect exported name in comments * add comments to exported methods
17 lines
499 B
Go
17 lines
499 B
Go
package testdata
|
|
|
|
type foo struct {
|
|
}
|
|
|
|
// AddressOfDereferencedValue --
|
|
func AddressOfDereferencedValue() {
|
|
x := &foo{}
|
|
_ = &*x // want "Found a no-op instruction that can be safely removed. It might be a result of writing code that does not do what was intended."
|
|
}
|
|
|
|
// DereferencedAddressOfValue --
|
|
func DereferencedAddressOfValue() {
|
|
x := foo{}
|
|
_ = *&x // want "Found a no-op instruction that can be safely removed. It might be a result of writing code that does not do what was intended."
|
|
}
|