Hello,
The following program does not output anything when compiled with icpc 15.0.2.132, with the flags "-std=c++11 -c -Wall":
extern int foo(char*);
int main() {
foo("C");
return 0;
}
In comparison, here is the output with g++ 4.9.2:
cpp:4:12: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
And with clang 3.5:
cpp:4:9: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wc++11-compat-deprecated-writable-strings]
Thank you.