diff options
Diffstat (limited to 'clang/test/CodeGen/2008-05-12-TempUsedBeforeDef.c')
-rw-r--r-- | clang/test/CodeGen/2008-05-12-TempUsedBeforeDef.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2008-05-12-TempUsedBeforeDef.c b/clang/test/CodeGen/2008-05-12-TempUsedBeforeDef.c new file mode 100644 index 0000000..bc2886e --- /dev/null +++ b/clang/test/CodeGen/2008-05-12-TempUsedBeforeDef.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -w -emit-llvm -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); +} |