Add include needed for MSVC.
[clang/acc.git] / test / CodeGen / whilestmt.c
blob95e18f4d21ff1e0b8a2353abc0cd0987af6a6225
1 // RUN: clang-cc %s -emit-llvm -o -
3 int bar();
4 int foo() {
5 int i;
6 i = 1 + 2;
7 while(1) {
8 i = bar();
9 i = bar();
11 return i;
15 int foo1() {
16 int i;
17 i = 1 + 2;
18 while(1) {
19 i = bar();
20 if (i == 42)
21 break;
22 i = bar();
24 return i;
28 int foo2() {
29 int i;
30 i = 1 + 2;
31 while(1) {
32 i = bar();
33 if (i == 42)
34 continue;
35 i = bar();
37 return i;
41 int foo3() {
42 int i;
43 i = 1 + 2;
44 while(1) {
45 i = bar();
46 if (i == 42)
47 break;
49 return i;
53 int foo4() {
54 int i;
55 i = 1 + 2;
56 while(1) {
57 i = bar();
58 if (i == 42)
59 continue;
61 return i;