OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [m68k/] [dtor.C] - Blame information for rev 258

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
#include 
2
 
3
extern "C" void print (char *, ...);
4
 
5
class foo
6
{
7
public:
8
  foo () { print ("ctor\n"); }
9
  ~foo () { print ("dtor\n"); }
10
};
11
 
12
foo x;
13
 
14
main ()
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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.