deadcode.go 320 B

1234567891011121314
  1. // Copyright 2013 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // This file contains tests for the dead code checker.
  5. package deadcode
  6. func _() int {
  7. print(1)
  8. return 2
  9. println() // ERROR "unreachable code"
  10. return 3
  11. }