newlib-cygwin/libgloss/m68k/dtor.C

26 lines
330 B
C++
Raw Normal View History

2000-03-18 06:48:54 +08:00
#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);
}