diff options
author | danglassey <danglassey> | 2002-08-14 09:55:38 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-08-14 09:55:38 +0000 |
commit | 6d6973e035aac5ec1676efccd5b8ada70c40b639 (patch) | |
tree | 4e92da327f60a083fe610e6b68d016434653b5b4 /tests/casttest.cpp | |
parent | c9458897ebbb739d8db83c80e06512d8a612f743 (diff) | |
download | sword-sf-cvs-6d6973e035aac5ec1676efccd5b8ada70c40b639.tar.gz |
Initial import for syncing from crosswire CVS
Diffstat (limited to 'tests/casttest.cpp')
-rw-r--r-- | tests/casttest.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/casttest.cpp b/tests/casttest.cpp deleted file mode 100644 index af7576b..0000000 --- a/tests/casttest.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include <iostream> -#include <versekey.h> -#include <treekeyidx.h> -#include <listkey.h> -int main(int argc, char **argv) { -// VerseKey x("jas"); - TreeKeyIdx x("jas"); -// ListKey x("jas"); - SWKey *y = &x; - TreeKeyIdx *v = &x; -// VerseKey *v = &x; -// ListKey *v = &x; - -// v = SWDYNAMIC_CAST(VerseKey, y); - v = SWDYNAMIC_CAST(TreeKeyIdx, y); -// v = SWDYNAMIC_CAST(ListKey, y); - std::cout << std::endl; - if (v) - std::cout << (const char *)(*v); - else - std::cout << "cast failed\n"; - - std::cout << std::endl; - std::cout << std::endl; - return 0; -} |