Mercurial > projects > ldc
view dmd2/gnuc.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 | f04dde6e882c |
children |
line wrap: on
line source
#ifndef _GNUC_H #define _GNUC_H 1 int memicmp(const char *s1, const char *s2, int n); int stricmp(const char *s1, const char *s2); #endif