summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-27 01:08:03 +0000
committerChris Lattner <sabre@nondot.org>2010-06-27 01:08:03 +0000
commite01d966ce22e90a3d007bbb60a88c6b553bb74b5 (patch)
treedaadafa62285774d06b19253d2c27722e21d8860 /clang
parent3fcc790cd8da55bc18603535854039a20fb5eba4 (diff)
downloadbcm5719-llvm-e01d966ce22e90a3d007bbb60a88c6b553bb74b5.tar.gz
bcm5719-llvm-e01d966ce22e90a3d007bbb60a88c6b553bb74b5.zip
merge two tests.
llvm-svn: 106971
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGen/2008-12-02-logical-or-fold.c4
-rw-r--r--clang/test/CodeGen/exprs.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/clang/test/CodeGen/2008-12-02-logical-or-fold.c b/clang/test/CodeGen/2008-12-02-logical-or-fold.c
deleted file mode 100644
index 167c5c194f7..00000000000
--- a/clang/test/CodeGen/2008-12-02-logical-or-fold.c
+++ /dev/null
@@ -1,4 +0,0 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | grep "ret i32 1"
-// PR3150
-
-int a() {return 1||1;}
diff --git a/clang/test/CodeGen/exprs.c b/clang/test/CodeGen/exprs.c
index 010e6e3cf51..b3cf9133bda 100644
--- a/clang/test/CodeGen/exprs.c
+++ b/clang/test/CodeGen/exprs.c
@@ -131,3 +131,9 @@ int f11(long X) {
// CHECK-NEXT: load i32*
}
+int f12() {
+ // PR3150
+ // CHECK: define i32 @f12
+ // CHECK: ret i32 1
+ return 1||1;
+}
OpenPOWER on IntegriCloud