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