[Lldb-commits] [lldb] r161555 - /lldb/trunk/test/functionalities/data-formatter/data-formatter-cpp/main.cpp

Enrico Granata egranata at apple.com
Wed Aug 8 17:35:41 PDT 2012


Author: enrico
Date: Wed Aug  8 19:35:41 2012
New Revision: 161555

URL: http://llvm.org/viewvc/llvm-project?rev=161555&view=rev
Log:
<rdar://problem/12061386> Fixing data-formatter-cpp test case - previous version had an unfortunate dependency on the value of uninitialized memory

Modified:
    lldb/trunk/test/functionalities/data-formatter/data-formatter-cpp/main.cpp

Modified: lldb/trunk/test/functionalities/data-formatter/data-formatter-cpp/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/data-formatter/data-formatter-cpp/main.cpp?rev=161555&r1=161554&r2=161555&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/data-formatter/data-formatter-cpp/main.cpp (original)
+++ lldb/trunk/test/functionalities/data-formatter/data-formatter-cpp/main.cpp Wed Aug  8 19:35:41 2012
@@ -96,7 +96,10 @@
     
     Point iAmSomewhere(4,6);
     
-	i_am_cool *cool_pointer = new i_am_cool(3,-3.141592,'E');
+	i_am_cool *cool_pointer = (i_am_cool*)malloc(sizeof(i_am_cool)*3);
+	cool_pointer[0] = i_am_cool(3,-3.141592,'E');
+	cool_pointer[1] = i_am_cool(0,-3.141592,'E');
+	cool_pointer[2] = i_am_cool(0,-3.141592,'E');
     
     i_am_cool cool_array[5];
     





More information about the lldb-commits mailing list