From 9658a2cb3dc99bb261eb5b07c1ce1393d8852ff3 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 12 May 2008 13:01:19 +0000 Subject: [PATCH] Testcase for PR2264. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50965 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2008-05-12-TempUsedBeforeDef.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/CFrontend/2008-05-12-TempUsedBeforeDef.c 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); +} -- 2.34.1