diff options
author | Duncan Sands <baldrick@free.fr> | 2008-05-12 13:01:19 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-05-12 13:01:19 +0000 |
commit | 9658a2cb3dc99bb261eb5b07c1ce1393d8852ff3 (patch) | |
tree | 8888ffe4f3ed20f360f49a995856b608a3db090f /test/CFrontend | |
parent | 7b45e33107b59275cfb11f7e8b2de26db7530f3c (diff) |
Testcase for PR2264.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r-- | test/CFrontend/2008-05-12-TempUsedBeforeDef.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CFrontend/2008-05-12-TempUsedBeforeDef.c b/test/CFrontend/2008-05-12-TempUsedBeforeDef.c new file mode 100644 index 0000000000..5c3bfdaf64 --- /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); +} |