xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2005-06-15-ExpandGotoInternalProblem.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c99 %s -emit-llvm -o - | \
2*0a6a1f1dSLionel Sambuc // RUN:    opt -O3 -disable-output
3f4a2713aSLionel Sambuc // PR580
4f4a2713aSLionel Sambuc 
5f4a2713aSLionel Sambuc int X, Y;
foo()6f4a2713aSLionel Sambuc int foo() {
7f4a2713aSLionel Sambuc   int i;
8f4a2713aSLionel Sambuc         for (i=0; i<100; i++ )
9f4a2713aSLionel Sambuc         {
10f4a2713aSLionel Sambuc                 break;
11f4a2713aSLionel Sambuc                 i = ( X || Y ) ;
12f4a2713aSLionel Sambuc         }
13f4a2713aSLionel Sambuc }
14f4a2713aSLionel Sambuc 
15