# HG changeset patch # User Frits van Bommel # Date 1241823347 -7200 # Node ID bac742d3a72db66d7af21f8d05ee49352e35a507 # Parent 4099548c80e094300722547d28f17e05026df7c4 Make sure this testcase keeps crashing with -O3. Recent optimization improvements made LLVM realize the store-to-null was unavoidable, so it deleted all of main() and replaced it with 'unreachable'. Because the body of main() no longer even contained a return instruction, calling it caused random code to be ran instead. This happened to be the code that links in the ModuleInfo on my machine, which then returned "successfully". diff -r 4099548c80e0 -r bac742d3a72d tests/mini/norun_debug11.d --- a/tests/mini/norun_debug11.d Sat May 09 00:50:15 2009 +0200 +++ b/tests/mini/norun_debug11.d Sat May 09 00:55:47 2009 +0200 @@ -28,6 +28,6 @@ auto ci = c.classinfo; - int* fail; + int* fail = cast(int*) 1; *fail = 0; }