You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
343 B
21 lines
343 B
// 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;
|
|
}
|