Skip to content

Commit

Permalink
Update test/inline_sync.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mstmdev committed Oct 6, 2023
1 parent e7b91f3 commit 6b00862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/inline_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var once *sync.Once

func small7() { // ERROR "can inline small7"
// the Do fast path should be inlined
once.Do(small5) // ERROR "inlining call to sync\.\(\*Once\)\.Do"
once.Do(small5) // ERROR "inlining call to sync\.\(\*Once\)\.Do" "inlining call to atomic\.\(\*Uint32\)\.Load"
}

var rwmutex *sync.RWMutex
Expand Down

0 comments on commit 6b00862

Please sign in to comment.