comparison: select the caller_info
[smatch.git] / validation / vla-sizeof3.c
blob21edb007802acd4117395403df470e8124448c27
1 #define N 2UL
2 #define T int
4 static unsigned long foo(int x)
6 T a[x][N];
8 return sizeof(a) == (N * x * sizeof(T));
12 * check-name: vla-sizeof var X cte
13 * check-command: test-linearize -Wvla $file
15 * check-output-ignore
16 * check-output-contains: ret\\..*\\$1
18 * check-error-start
19 vla-sizeof3.c:6:13: warning: Variable length array is used.
20 * check-error-end