20000317 sourceware import
This commit is contained in:
		
							
								
								
									
										25
									
								
								libgloss/m68k/dtor.C
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								libgloss/m68k/dtor.C
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,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);
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user