Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dtor.C « sparc « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: abde4f1028e54f3c5ce4ec0a6058c20c709c9bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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); */
}