aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/consistency.vlad/layout/c-short-1-c-longdouble.cpp
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-20 15:18:52 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-20 15:18:52 +0000
commit7d8bd4f888867472c68cec4d25b3b47817509ecd (patch)
treeb6a900e9e079def1150529fe776c6e7fc4601abb /gcc/testsuite/consistency.vlad/layout/c-short-1-c-longdouble.cpp
parente6f8842c079cc138e95dd3732b58f13e05bcc4c2 (diff)
svn merge -r107806:112661 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branchredhat/gcc-3_4-branch
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/redhat/gcc-3_4-branch@113116 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/consistency.vlad/layout/c-short-1-c-longdouble.cpp')
-rw-r--r--gcc/testsuite/consistency.vlad/layout/c-short-1-c-longdouble.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/testsuite/consistency.vlad/layout/c-short-1-c-longdouble.cpp b/gcc/testsuite/consistency.vlad/layout/c-short-1-c-longdouble.cpp
deleted file mode 100644
index f6be2334706..00000000000
--- a/gcc/testsuite/consistency.vlad/layout/c-short-1-c-longdouble.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <stdio.h>
-
-class c{
-public:
- short f;
-};
-
-
-static class sss: public c{
-public:
- long double m;
-} sss;
-
-#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
-
-int main (void) {
- printf ("++Class with longdouble inhereting class with short:\n");
- printf ("size=%d,align=%d\n", sizeof (sss), __alignof__ (sss));
- printf ("offset-short=%d,offset-longdouble=%d,\nalign-short=%d,align-longdouble=%d\n",
- _offsetof (class sss, f), _offsetof (class sss, m),
- __alignof__ (sss.f), __alignof__ (sss.m));
- return 0;
-}