Some types testcases

during some rework I tripped over some more obscure but valid declarators.
Let's not loose them.
mob
Michael Matz 2019-04-09 04:39:38 +02:00
parent ce4aea2478
commit 94846d3eef
1 changed files with 12 additions and 0 deletions

View File

@ -39,5 +39,17 @@ int f5 (fptr5 fp, fptr1 i)
{
return fp(i);
}
typedef int intx4[4];
int f8 (intx4, int);
int f8 (int ([4]), int);
int f8 (int y[4], int i)
{
return y[i];
}
int f9 (int (*)(int), int);
int f9 (int ((int)), int);
int f9 (int f(int), int i)
{
return f(i);
}
int main () { return 0; }