xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2008-05-12-TempUsedBeforeDef.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -w -emit-llvm -o /dev/null %s
2*f4a2713aSLionel Sambuc // PR2264.
3*f4a2713aSLionel Sambuc unsigned foo = 8L;
4*f4a2713aSLionel Sambuc unsigned bar = 0L;
5*f4a2713aSLionel Sambuc volatile unsigned char baz = 6L;
test()6*f4a2713aSLionel Sambuc int test() {
7*f4a2713aSLionel Sambuc   char qux = 1L;
8*f4a2713aSLionel Sambuc   for (; baz >= -29; baz--)
9*f4a2713aSLionel Sambuc     bork(bar && foo, qux);
10*f4a2713aSLionel Sambuc }
11