commit | ea137cd241c56d9120a056994c7de8889d137d40 | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Tue Dec 02 16:02:46 2008 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Tue Dec 02 16:02:46 2008 +0000 |
tree | 47e25162f6f3c45d69df0a60886b100bbbb0ed5f | |
parent | 121ed22eafc4b8bf9efc3361655a9c893e243417 [diff] [blame] |
Fix for PR3150: obvious copy-paste bug in ScalarExprEmitter::VisitBinLOr. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60415 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/2008-12-02-logical-or-fold.c b/test/CodeGen/2008-12-02-logical-or-fold.c new file mode 100644 index 0000000..ba8f86c --- /dev/null +++ b/test/CodeGen/2008-12-02-logical-or-fold.c
@@ -0,0 +1,4 @@ +// RUN: clang -emit-llvm -o - %s | grep "store i32 1" +// PR3150 + +int a() {return 1||1;}