mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 11:00:04 +08:00
26 lines
330 B
C++
26 lines
330 B
C++
|
#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);
|
||
|
}
|