[cfe-commits] r106887 - /cfe/trunk/test/CodeGenCXX/DynArrayInit.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Jun 25 14:08:10 PDT 2010
Author: fjahanian
Date: Fri Jun 25 16:08:10 2010
New Revision: 106887
URL: http://llvm.org/viewvc/llvm-project?rev=106887&view=rev
Log:
Test case for pr7490.
Added:
cfe/trunk/test/CodeGenCXX/DynArrayInit.cpp
Added: cfe/trunk/test/CodeGenCXX/DynArrayInit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/DynArrayInit.cpp?rev=106887&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/DynArrayInit.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/DynArrayInit.cpp Fri Jun 25 16:08:10 2010
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
+// PR7490
+
+int main() {
+ // CHECK: {{for.cond:|:4}}
+ // CHECK: %isless = icmp ult i64 %0, 1133
+ // CHECK: {{for.body:|:6}}
+ // CHECK: store i8 0
+ // CHECK: br label %{{for.inc|7}}
+ // CHECK: {{for.inc:|:7}}
+ // CHECK: %inc = add i64 %2, 1
+ // CHECK: store i64 %inc
+ // CHECK: br label %{{for.cond|4}}
+ // CHECK: {{for.end:|:12}}
+ volatile char *buckets = new char[1133]();
+}
More information about the cfe-commits
mailing list