param_key: use get_name_sym_from_key() instead of return_state_to_var_sym()
[smatch.git] / validation / vla-sizeof1.c
blobed7f5d4ee8f6fd6ec000d41ca24c3ecbf24e0c64
1 #define N 2
2 #define T int
4 static unsigned int foo(int x)
6 T a[(x,N)];
8 return sizeof(a) == (N * sizeof(T));
12 * check-name: vla-sizeof var,cte
13 * check-command: test-linearize -Wvla $file
15 * check-output-ignore
16 * check-output-contains: ret\\.32 *\\$1
18 * check-error-start
19 vla-sizeof1.c:6:15: warning: Variable length array is used.
20 * check-error-end