blob: 72dcc6b5ee328dd2afbfa1ef36d3711e7e521a68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* REQUIRED_ARGS: -betterC
PERMUTE_ARGS:
*/
import core.stdc.stdio;
extern (C) int main()
{
printf("hello world\n");
int[3] a;
foo(a[], 3);
return 0;
}
int foo(int[] a, int i)
{
return a[i];
}
/**********************************************/
// https://issues.dlang.org/show_bug.cgi?id=19234
void issue19234()
{
static struct A {}
A[10] a;
A[10] b;
b[] = a[];
}
/**********************************************/
// https://issues.dlang.org/show_bug.cgi?id=22922
void issue22922()
{
int[] x = [];
}
|