source: trunk/libs/newlib/src/libgloss/sparc/dtor.C @ 523

Last change on this file since 523 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 335 bytes
Line 
1#include <stdio.h>
2
3extern "C" void print (char *, ...);
4
5class foo
6{
7public:
8  foo () { print ("ctor\n"); }
9  ~foo () { print ("dtor\n"); }
10};
11
12foo x;
13
14main ()
15{
16  outbyte ('&');
17  outbyte ('@');
18  outbyte ('$');
19  outbyte ('%');
20  print ("FooBar\r\n");
21
22  /* whew, we made it */
23  print ("\r\nDone...\r\n");
24/*  fflush(stdout); */
25}
Note: See TracBrowser for help on using the repository browser.