This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] g++.dg/compat/struct-layout-1 tests


On Tue, 5 Apr 2005, Jakub Jelinek wrote:

> This patch adds a variation on the gcc.dg/compat/struct-layout-1
> tests for C++.  I have removed stuff that was specific to C
> and allowed bitfields larger than their type.  Still, it only
> tests POD types (I was surprised struct S { _Complex int i; }
> is non-POD), for non-POD a different test type will be needed
> (e.g. avoiding vaarg testing etc.).

Does this test linking with C, for those cases which are valid as both C 
and C++ and are meant to have the same layout in both (in particular, 
excluding empty structs)?  Ability to test linking using the new C and C++ 
compilers, the new C++ compiler and an old C compiler or the new C 
compiler and an old C++ compiler would seem to make sense, although of 
course it isn't needed for the initial patch; it can be added later.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]