// Note: if using PGI compilers, you will need to add #include "prog.hh" | |
// even though you're using precompiled headers. | |
void func(void) { | |
std::cout << "This is a function that fails to compile if iostream is not included." | |
<< std::endl; | |
} | |
int main(void) { | |
func(); | |
return 0; | |
} |