blob: 11fded188f0ee4d1cf79a4aa5600e07c309e743f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
fn make_flag(a string, b string, c string) string {
return ''
}
fn main() {
// Set up flags
expected_flags := [
make_flag('solaris', '-L', '/opt/local/lib'),
make_flag('macos', '-framework', 'Cocoa'),
make_flag('windows', '-l', 'gdi32'),
]
x := []int{len: 10, cap: 100, init: 1}
_ := expected_flags
buf := [100]byte{}
println(x)
println(buf)
}
|