repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git]
/
test
/
CodeGen
/
dostmt.c
blob
1a2e02a78e6ba60cab34d9b6d32be8e5bd1a726e
1
// RUN: %clang_cc1 %s -emit-llvm -o -
2
3
int
bar
();
4
int
test0
() {
5
int
i
;
6
i
=
1
+
2
;
7
do
{
8
i
=
bar
();
9
i
=
bar
();
10
}
while
(
0
);
11
return
i
;
12
}
13
14
15
int
test1
() {
16
int
i
;
17
i
=
1
+
2
;
18
do
{
19
i
=
bar
();
20
if
(
i
==
42
)
21
break
;
22
i
=
bar
();
23
}
while
(
1
);
24
return
i
;
25
}
26
27
28
int
test2
() {
29
int
i
;
30
i
=
1
+
2
;
31
do
{
32
i
=
bar
();
33
if
(
i
==
42
)
34
continue
;
35
i
=
bar
();
36
}
while
(
1
);
37
return
i
;
38
}
39
40
41
int
test3
() {
42
int
i
;
43
i
=
1
+
2
;
44
do
{
45
i
=
bar
();
46
if
(
i
==
42
)
47
break
;
48
}
while
(
0
);
49
return
i
;
50
}
51
52
53
int
test4
() {
54
int
i
;
55
i
=
1
+
2
;
56
do
{
57
i
=
bar
();
58
if
(
i
==
42
)
59
continue
;
60
}
while
(
0
);
61
return
i
;
62
}
63
64
// rdar://6103124
65
void
test5
() {
66
do
{
break
; }
while
(
0
);
67
}
68
69
70