mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 11:41:21 +00:00
fe9921457c
* add "want" expectations * add build step with analyzer tests * add colon to yml * Merge refs/heads/master into fix-analyzer-test-expectations * Merge refs/heads/master into fix-analyzer-test-expectations * Merge refs/heads/master into fix-analyzer-test-expectations * Merge refs/heads/master into fix-analyzer-test-expectations * remove tests from CI * readme file * change header size
15 lines
433 B
Go
15 lines
433 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 do what was intended."
|
|
}
|
|
|
|
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."
|
|
}
|