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]

remove duplicate test


        * g++.dg/other/offsetof1.C: Include cstddef, use non-builtin
        form of offsetof.
        * g++.dg/other/offsetof5.C: Remove duplicate.

Index: testsuite/g++.dg/other/offsetof1.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/other/offsetof1.C,v
retrieving revision 1.3
diff -c -p -d -r1.3 offsetof1.C
*** testsuite/g++.dg/other/offsetof1.C	30 Aug 2004 18:59:18 -0000	1.3
--- testsuite/g++.dg/other/offsetof1.C	31 Aug 2004 17:22:29 -0000
***************
*** 4,9 ****
--- 4,12 ----
  // Contributed by Nathan Sidwell 14 Aug 2002 <nathan@codesourcery.com>
  
  // PR c++ 7598, offsetof broke
+ // PR c++ 11072, DR 273's solution is broken
+ 
+ #include <cstddef>
  
  struct F
  {
*************** struct F
*** 11,14 ****
    char j;
  };
  
! static int ary[__builtin_offsetof(F, j)];
--- 14,17 ----
    char j;
  };
  
! static int ary[offsetof(F, j)];
Index: testsuite/g++.dg/other/offsetof5.C
===================================================================
RCS file: testsuite/g++.dg/other/offsetof5.C
diff -N testsuite/g++.dg/other/offsetof5.C
*** testsuite/g++.dg/other/offsetof5.C	2 Jul 2003 14:30:53 -0000	1.1
--- /dev/null	1 Jan 1970 00:00:00 -0000
***************
*** 1,17 ****
- // { dg-do compile }
- 
- // Copyright (C) 2003 Free Software Foundation, Inc.
- // Contributed by Nathan Sidwell 30 June 2003 <nathan@codesourcery.com>
- 
- // PR c++ 11072, DR 273's solution is broken
- 
- #include <stddef.h>
- 
- struct F
- {
-   char i;
-   char j;
- };
- 
- static int ary[offsetof (F, j)];
- 
--- 0 ----


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