<commit_before>// errchk $G -e $D/$F.go

// Copyright 2010 The Go Authors.  All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

type xyz struct {
    ch chan
} // ERROR "unexpected } in channel type"

func Foo(y chan) { // ERROR "unexpected \) in channel type"
}

func Bar(x chan, y int) { // ERROR "unexpected comma in channel type"
}
<commit_msg>test: match gccgo error messages for syntax/chan.go.<commit_after>// errchk $G -e $D/$F.go

// Copyright 2010 The Go Authors.  All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

type xyz struct {
    ch chan
} // ERROR "unexpected .*}.* in channel type"

func Foo(y chan) { // ERROR "unexpected .*\).* in channel type"
}

func Bar(x chan, y int) { // ERROR "unexpected comma in channel type"
}

{'fraction_non_alphanumeric': 0.11534276387377584, 'fraction_numerical': 0.008705114254624592, 'mean_word_length': 2.9655172413793105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2929248', 'n_tokens_mistral': 309, 'n_tokens_neox': 288, 'n_words': 132}