1// Test that completing an array declared with a typedef doesn't change 2// the typedef. 3 4// { dg-do run } 5 6typedef int iArr[]; 7 8const iArr array4={ 9 1, 2, 3, 4 10}; 11 12const iArr array3={ 13 1, 2, 3 14}; 15 16const iArr array5={ 17 1, 2, 3, 4, 5 18}; 19 20int main() 21{ 22 if (sizeof (array4)/sizeof (array4[0]) != 4 23 || sizeof (array3)/sizeof (array3[0]) != 3 24 || sizeof (array5)/sizeof (array5[0]) != 5) 25 return 1; 26} 27