From 03261851a10dd2d6900a0a00a7515a0a46fb5d76 Mon Sep 17 00:00:00 2001 From: Ranjith Kumaran Date: Fri, 17 Mar 2000 22:48:54 +0000 Subject: 20000317 sourceware import --- libgloss/sparc/dtor.C | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 libgloss/sparc/dtor.C (limited to 'libgloss/sparc/dtor.C') diff --git a/libgloss/sparc/dtor.C b/libgloss/sparc/dtor.C new file mode 100644 index 0000000..abde4f1 --- /dev/null +++ b/libgloss/sparc/dtor.C @@ -0,0 +1,25 @@ +#include + +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); */ +} -- cgit v1.1