Why not make it run with all the compilers rather than making it dependant on oddities in a particular compiler? It need not *officially* run on all the compilers, someone just tests the others from time to time to ensure that you aren't doing something bad.
I already thought about doing that, but it is not actually oddities in a particular compiler, but things actually working as they should, which seems to be the difference between the compilers.
In my own testing, I tested the compilers using just what files came with the compiler's distribution. I went to each compiler's web site, setup each compiler and tested it just using the files that came with it. I tested it by using the "new project" option in Code Blocks and just compiling the sample code included with each type of new project under 1.0rc2.
Here are my results:
Open Watcom: (files included in distribution only)
Console Application: Pass
Win32Gui Application: Pass
Dll Sample: Pass
Static Library Sample: Pass
SDCC Application: Pass
--------------------------------------------------
Digital Mars: (files included in distribution only)
Console Application: Fail
Win32Gui Application: Pass
Dll Sample: Fail
Static Library Sample: Pass (2 warning messages)
SDCC Application: Pass
--------------------------------------------------
MS Visual Toolkit 2003 (files included in distribution only)
Console Application: Pass (9 warning messages)
Win32Gui Application: Fail
Dll Sample: Fail
Static Library Sample: Fail
SDCC Application: Fail
--------------------------------------------------
Borland C++ (files included in distribution only)
Console application: Fail
Win32Gui Application: Fail
Dll Sample: Fail
Static Library Sample: Fail
SDCC Application: Fail
--------------------------------------------------
The funny thing are things like the SDCC application, that when you click on "new project" it gives you 3 lines of code. Only 3 lines of code, and 2 compilers manage to fail on compiling 3 lines of code?