1// { dg-do compile } 2 3package main 4 5func main() { 6 goto lab; // { dg-error "undefined label" } 7} 8