repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix PR4948 (and a leak): by not destroying the DwarfException
[llvm/avr.git]
/
test
/
FrontendC
/
2007-02-04-WITH_SIZE_EXPR.c
blob
f02a44b157336a9e3e27ef784e5b8052cf0381b6
1
// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm
2
// PR1174
3
4
void
zzz
(
char
*
s1
,
char
*
s2
,
int
len
,
int
*
q
)
5
{
6
int
z
=
5
;
7
unsigned int
i
,
b
;
8
struct
{
char
a
[
z
]; }
x
;
9
10
for
(
i
=
0
;
i
<
len
;
i
++)
11
s1
[
i
] =
s2
[
i
];
12
13
b
=
z
&
0x3
;
14
15
len
+= (
b
==
0
?
0
:
1
) +
z
;
16
17
*
q
=
len
;
18
19
foo
(
x
,
x
);
20
}
21