diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-12 19:40:17 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-12 19:40:17 +0000 |
commit | fe64d4b431d61b695e126b284d059e8048559e76 (patch) | |
tree | 750c0b89ccefa88cd24110d67422e7f731df162e /gcc/testsuite/consistency.vlad/layout/c-longlong-2-c-double.cpp | |
parent | 508469fee36069e92dc4b01adf6f0db001a71612 (diff) | |
download | gcc-fe64d4b431d61b695e126b284d059e8048559e76.tar.gz |
In gcc/:
* config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
-mcall-i960.
(ASM_SPEC): Likewise.
(CC1_ENDIAN_LITTLE_SPEC): Likewise.
(CC1_SPEC): Likewise.
(LINK_TARGET_SPEC): Likewise.
(CPP_ENDIAN_SPEC): Likewise.
* Makefile.in (check-consistency): New target.
In gcc/testsuite/:
* consistency.vlad: New directory, 1665 files.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39609 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/consistency.vlad/layout/c-longlong-2-c-double.cpp')
-rw-r--r-- | gcc/testsuite/consistency.vlad/layout/c-longlong-2-c-double.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/consistency.vlad/layout/c-longlong-2-c-double.cpp b/gcc/testsuite/consistency.vlad/layout/c-longlong-2-c-double.cpp new file mode 100644 index 00000000000..a9914a46086 --- /dev/null +++ b/gcc/testsuite/consistency.vlad/layout/c-longlong-2-c-double.cpp @@ -0,0 +1,28 @@ +#include <stdio.h> + +class c{ +public: + long long f; +}; + +class c2{ +public: + double f2; +}; + + +static class sss: public c, public c2{ +public: + long long m; +} sss; + +#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16) + +int main (void) { + printf ("++Class with longlong inhereting classes with longlong & double:\n"); + printf ("size=%d,align=%d\n", sizeof (sss), __alignof__ (sss)); + printf ("offset-f=%d,offset-f2=%d,offset-m=%d,\nalign-f=%d,align-f2=%d,align-m=%d\n", + _offsetof (class sss, f), _offsetof (class sss, f2), _offsetof (class sss, m), + __alignof__ (sss.f), __alignof__ (sss.f2), __alignof__ (sss.m)); + return 0; +} |