Mercurial > projects > ldc
view gen/enums.h @ 1318:bac742d3a72d
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".
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sat, 09 May 2009 00:55:47 +0200 |
parents | 521dd1626d76 |
children | d9c5f5a43403 |
line wrap: on
line source
enum { LLVMnone, LLVMintrinsic, LLVMno_typeinfo, LLVMno_moduleinfo, LLVMalloca, LLVMva_start, LLVMva_copy, LLVMva_end, LLVMva_arg, LLVMldc, LLVMinline_asm };