offsetof1.C: Include cstddef, use non-builtin form of offsetof.
* g++.dg/other/offsetof1.C: Include cstddef, use non-builtin form of offsetof. * g++.dg/other/offsetof5.C: Remove duplicate. From-SVN: r86834
This commit is contained in:
parent
cf73cdac51
commit
1c04c4cc03
|
@ -1,3 +1,9 @@
|
|||
2004-08-31 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* g++.dg/other/offsetof1.C: Include cstddef, use non-builtin
|
||||
form of offsetof.
|
||||
* g++.dg/other/offsetof5.C: Remove duplicate.
|
||||
|
||||
2004-08-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
|
||||
|
||||
PR fortran/17244
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
// 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
|
||||
{
|
||||
|
@ -11,4 +14,4 @@ struct F
|
|||
char j;
|
||||
};
|
||||
|
||||
static int ary[__builtin_offsetof(F, j)];
|
||||
static int ary[offsetof(F, j)];
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
// { 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)];
|
||||
|
Loading…
Reference in New Issue