aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-20 21:55:52 +0000
committerChris Lattner <sabre@nondot.org>2010-07-20 21:55:52 +0000
commit806941eab5e1d62d7676e5cdc0e1d9e397ea78b4 (patch)
treebfca0b00b1be28b9a9e3411dd7a5a4f571d46d1f /test
parent190faf7c30890479925193b074571e5dc30c3f53 (diff)
in 'new int[4]', constant fold the 4*4=16 instead of
doing an overflow check. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGenCXX/new.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CodeGenCXX/new.cpp b/test/CodeGenCXX/new.cpp
index fcaf2e8138..885158f8a0 100644
--- a/test/CodeGenCXX/new.cpp
+++ b/test/CodeGenCXX/new.cpp
@@ -102,6 +102,7 @@ struct Empty { };
// We don't need to initialize an empty class.
void t12() {
// CHECK: define void @_Z3t12v
+ // CHECK-NOT: br label
// CHECK: ret void
(void)new Empty[10];
}