mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 11:41:21 +00:00
15 lines
425 B
Go
15 lines
425 B
Go
|
package testdata
|
||
|
|
||
|
type foo struct {
|
||
|
}
|
||
|
|
||
|
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 work as expected."
|
||
|
}
|
||
|
|
||
|
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 work as expected."
|
||
|
}
|