summaryrefslogtreecommitdiff
path: root/TAO/tao/t-sizes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/t-sizes.cpp')
-rw-r--r--TAO/tao/t-sizes.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/TAO/tao/t-sizes.cpp b/TAO/tao/t-sizes.cpp
new file mode 100644
index 00000000000..bba12eb1924
--- /dev/null
+++ b/TAO/tao/t-sizes.cpp
@@ -0,0 +1,19 @@
+// $Id$
+
+#include "tao/corbafwd.h"
+
+ACE_RCSID(tao, t_sizes, "$Id$")
+
+#define SHOWSIZE(t) ACE_OS::printf ("sizeof (%s) = %u\n", #t, sizeof(t));
+
+int
+main (int, char*[])
+{
+ SHOWSIZE (CORBA::Boolean);
+ SHOWSIZE (CORBA::Short);
+ SHOWSIZE (CORBA::Long);
+ SHOWSIZE (CORBA::LongLong);
+ SHOWSIZE (CORBA::Float);
+ SHOWSIZE (CORBA::Double);
+ SHOWSIZE (CORBA::LongDouble);
+}