Sharpmake.FunctionalTests/FastBuildFunctionalTest/codebase/AllCppWithDotCExe/hello_c.c (3 lines of code) (raw):

#include <iostream> #ifndef __cplusplus #error This file mustn't be compiled as C #endif void hello_c() { std::cout << "Hello from C++ in a .c!" << std::endl; }