Skip to content

Commit a8c8d12

Browse files
author
CHIKI Badreddine
committed
Add runnable test for valid static array parameters
1 parent e52a52d commit a8c8d12

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

compiler/test/runnable/test22790.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// https://issues.dlang.org/show_bug.cgi?id=22790
2+
3+
void test_static(int array[static 4]) {}
4+
5+
int main()
6+
{
7+
int a[4];
8+
test_static(a);
9+
return 0;
10+
}

0 commit comments

Comments
 (0)