Source file test/codegen/select.go

     1  // asmcheck
     2  
     3  // Copyright 2020 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  package codegen
     8  
     9  func f() {
    10  	ch1 := make(chan int)
    11  	ch2 := make(chan int)
    12  	for {
    13  		// amd64:-`MOVQ\t[$]0, command-line-arguments..autotmp_3`
    14  		select {
    15  		case <-ch1:
    16  		case <-ch2:
    17  		default:
    18  		}
    19  	}
    20  }
    21  

View as plain text