diff --git a/test/CFrontend/2008-05-12-TempUsedBeforeDef.c b/test/CFrontend/2008-05-12-TempUsedBeforeDef.c new file mode 100644 index 00000000000..5c3bfdaf64c --- /dev/null +++ b/test/CFrontend/2008-05-12-TempUsedBeforeDef.c @@ -0,0 +1,10 @@ +// RUN: %llvmgcc -S -o /dev/null %s +// PR2264. +unsigned foo = 8L; +unsigned bar = 0L; +volatile unsigned char baz = 6L; +int test() { + char qux = 1L; + for (; baz >= -29; baz--) + bork(bar && foo, qux); +}