testsuite: fix c23-constexpr-2a.c test to use dg-do run
[official-gcc.git] / gcc / testsuite / go.test / test / parentype.go
blobeafa076481a88eebb4feb678b592b626c04f4c00
1 // compile
3 // Copyright 2009 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.
7 // Test that types can be parenthesized.
9 package main
11 func f(interface{})
12 func g() {}
13 func main() {
14 f(map[string]string{"a":"b","c":"d"})
15 f([...]int{1,2,3})
16 f(map[string]func(){"a":g,"c":g})
17 f(make(chan(<-chan int)))
18 f(make(chan<-(chan int)))