summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/samples/dlltest/silly.cpp
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-11-07 16:52:48 +0000
committerChristopher Faylor <me@cgf.cx>2012-11-07 16:52:48 +0000
commit61746d6ae850aa6a89b0c0b00c609011c6d0ade9 (patch)
tree95552490c8ee6f3bf8b0f2d37e61bbc9dafe7a7b /winsup/mingw/samples/dlltest/silly.cpp
parent2ca28ea2dc0c397b9a11072e121e1c5b6f87650b (diff)
downloadcygnal-61746d6ae850aa6a89b0c0b00c609011c6d0ade9.tar.gz
cygnal-61746d6ae850aa6a89b0c0b00c609011c6d0ade9.tar.bz2
cygnal-61746d6ae850aa6a89b0c0b00c609011c6d0ade9.zip
* mingw: Delete obsolete directory.
* w32api: Ditto.
Diffstat (limited to 'winsup/mingw/samples/dlltest/silly.cpp')
-rw-r--r--winsup/mingw/samples/dlltest/silly.cpp55
1 files changed, 0 insertions, 55 deletions
diff --git a/winsup/mingw/samples/dlltest/silly.cpp b/winsup/mingw/samples/dlltest/silly.cpp
deleted file mode 100644
index ee9e1fe77..000000000
--- a/winsup/mingw/samples/dlltest/silly.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-//
-// C++ test of a dll which contains a C++ class.
-//
-
-#include <stdlib.h>
-#include <stdio.h>
-
-// Interface of class.
-#include "silly.h"
-
-#ifdef DERIVED_TEST
-// Here is a derived class too.
-class CMoreSilly : public CSilly
-{
- public:
- CMoreSilly (char* szNewName) : CSilly (szNewName) {};
- ~CMoreSilly ();
-
- WhatsYourName();
-};
-
-CMoreSilly::
-~CMoreSilly ()
-{
- printf ("In CMoreSilly \"%s\" destructor!\n", szName);
-}
-
-CMoreSilly::
-WhatsYourName ()
-{
- printf ("I'm more silly and my name is \"%s\"\n", szName);
-}
-#endif
-
-int
-main ()
-{
- CSilly* psilly = new CSilly("silly");
-
- psilly->WhatsYourName();
- psilly->Poke(); // Poke him, he should say "Ouch!"
- psilly->Stab(4); // Stab him four times he should say "Ugh!!!!"
-
- delete psilly;
-
-#ifdef DERIVED_TEST
- psilly = new CMoreSilly("more silly");
- psilly->WhatsYourName();
- psilly->Stab(5);
- delete psilly;
-#endif
-
- return 0;
-}
-