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
db/fixup_kernel.sh: update vfs_write() code
[smatch.git]
/
validation
/
eval-typeof-vla.c
blob
56a9ec2019234b50fd5058482f707a442279fe02
1
extern
int
a
[
1
];
2
3
static int
foo
(
int
n
)
4
{
5
int
i
=
0
;
6
int
(*
p
)[
1
] = (
typeof
(++
i
, (
int
(*)[
n
])
a
)) &
a
;
7
8
(
void
)
p
;
9
10
return
i
;
11
}
12
13
/*
14
* check-name: eval-typeof-vla
15
* check-command: test-linearize -Wno-vla $file
16
* check-known-to-fail
17
*
18
* check-output-start
19
foo:
20
.L0:
21
<entry-point>
22
ret.32 $1
23
24
25
* check-output-end
26
*/