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 Sambucint 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