aboutsummaryrefslogtreecommitdiff
path: root/libgloss/m68k/dtor.C
blob: 2cfcb4665d0e1c7139581751cc942f053a6dadda (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);
}