#include
2 int main() {
3 for(int i = 100; i--; )
4 puts("hello worldn");
5 }
1.) semicolon after i-- is wrong
2..) puts(" Hello world \n"); is the correct
3.) variable i is not defined
for( int i .... ) is allow in the next c / c++ standard (c99 and so far )
include
int main()
{
int i;
for( i = 0; i < 101; i-- )
puts("hello world \n");
}
this testcase works with option -O3 and Parallel Studio XE 2013 under linux without problems






Bad code generation on inderect loops
Simple test-case:
ICC 13 update 1 with /O3 generates this:
cmp does totally noghing. GCC and MSVC generates better code without cmp.
BTW: when will be new maybe beta release of ICC with delegating constructors and other new C++ features?