Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/libgloss/sparc/dtor.C
2023-03-06 14:48:14 +01:00

25 lines
335 B
C

#include <stdio.h>
extern "C" void print (char *, ...);
class foo
{
public:
foo () { print ("ctor\n"); }
~foo () { print ("dtor\n"); }
};
foo x;
main ()
{
outbyte ('&');
outbyte ('@');
outbyte ('$');
outbyte ('%');
print ("FooBar\r\n");
/* whew, we made it */
print ("\r\nDone...\r\n");
/* fflush(stdout); */
}