reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | // To generate the corresponding EXE, run: // clang-cl -MD -c coff-exports.cpp && lld-link /MANIFEST:NO coff-exports.obj #define EXPORT __declspec(dllexport) extern "C" int puts(const char *str); EXPORT void __declspec(noinline) foo() { puts("foo1"); puts("foo2"); } void bar() { foo(); } EXPORT int main() { bar(); return 0; } |