NetBSD/tests/lib/csu/h_initfini1.cxx
joerg cee90d4c4c Replace csu test case with a C++ based version. This makes the various
assembler routines obsolete. Be more exhaustive by testing dynamically
linked, statically linked and dynamically loaded.

XXX currently hard-codes /usr/tests due to limitations of bsd.test.mk
2010-07-28 13:51:38 +00:00

10 lines
142 B
C++

#include <unistd.h>
int
main(void)
{
static const char msg[] = "main executed\n";
write(STDOUT_FILENO, msg, sizeof(msg) - 1);
return 0;
}