aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-08-31 10:37:32 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-08-31 10:37:32 -0700
commit1c04c4cc039e10143d481f328127c601af1d3515 (patch)
tree96428beb0e4650612034394bb568e16bd1078fde /gcc
parentcf73cdac51a20dacfc1b569b0bd6fcef1d71f852 (diff)
downloadgcc-1c04c4cc039e10143d481f328127c601af1d3515.zip
gcc-1c04c4cc039e10143d481f328127c601af1d3515.tar.gz
gcc-1c04c4cc039e10143d481f328127c601af1d3515.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/other/offsetof1.C5
-rw-r--r--gcc/testsuite/g++.dg/other/offsetof5.C17
3 files changed, 10 insertions, 18 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 86a392c..e7a17d3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/g++.dg/other/offsetof1.C b/gcc/testsuite/g++.dg/other/offsetof1.C
index 39bb783..7873889 100644
--- a/gcc/testsuite/g++.dg/other/offsetof1.C
+++ b/gcc/testsuite/g++.dg/other/offsetof1.C
@@ -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)];
diff --git a/gcc/testsuite/g++.dg/other/offsetof5.C b/gcc/testsuite/g++.dg/other/offsetof5.C
deleted file mode 100644
index 40a4406..0000000
--- a/gcc/testsuite/g++.dg/other/offsetof5.C
+++ /dev/null
@@ -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)];
-