1*c85f09ccSJohn Levon #define N 2 2*c85f09ccSJohn Levon #define T int 3*c85f09ccSJohn Levon foo(int x)4*c85f09ccSJohn Levonstatic unsigned int foo(int x) 5*c85f09ccSJohn Levon { 6*c85f09ccSJohn Levon T a[(1,N)]; 7*c85f09ccSJohn Levon 8*c85f09ccSJohn Levon return sizeof(a) == (N * sizeof(T)); 9*c85f09ccSJohn Levon } 10*c85f09ccSJohn Levon 11*c85f09ccSJohn Levon /* 12*c85f09ccSJohn Levon * check-name: vla-sizeof cte,cte 13*c85f09ccSJohn Levon * check-command: test-linearize -Wvla $file 14*c85f09ccSJohn Levon * 15*c85f09ccSJohn Levon * check-output-ignore 16*c85f09ccSJohn Levon * check-output-contains: ret\\.32 *\\$1 17*c85f09ccSJohn Levon * 18*c85f09ccSJohn Levon * check-error-start 19*c85f09ccSJohn Levon * check-error-end 20*c85f09ccSJohn Levon */ 21