repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
slice: remove unneeded nr_nrbits from EXPR_SLICE
[smatch.git]
/
validation
/
vla-sizeof0.c
blob
a58fd300f062960493bdef6b245f02dcf6028da2
1
#define N 2
2
#define T int
3
4
static unsigned int
foo
(
int
x
)
5
{
6
T a
[(
1
,
N
)];
7
8
return sizeof
(
a
) == (
N
*
sizeof
(
T
));
9
}
10
11
/*
12
* check-name: vla-sizeof cte,cte
13
* check-command: test-linearize -Wvla $file
14
*
15
* check-output-ignore
16
* check-output-contains: ret\\.32 *\\$1
17
*
18
* check-error-start
19
* check-error-end
20
*/