Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: gcc/gcc/testsuite/g++.dg/other/offsetof3.C

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/other/mmintrin.C ('k') | gcc/gcc/testsuite/g++.dg/other/packed1.C » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/g++.dg/other/offsetof3.C
diff --git a/gcc/gcc/testsuite/g++.dg/other/offsetof3.C b/gcc/gcc/testsuite/g++.dg/other/offsetof3.C
index 1e83af980718ed7eaf4d31f711a0a33c21975c91..5946c812ced7a983857c64c9a678fe7be8e7605d 100644
--- a/gcc/gcc/testsuite/g++.dg/other/offsetof3.C
+++ b/gcc/gcc/testsuite/g++.dg/other/offsetof3.C
@@ -1,16 +1,17 @@
-/* Verify that offsetof warns if given a non-POD */
+/* Verify that offsetof warns if given a non-standard-layout class */
/* Copyright (C) 2003 Free Software Foundation, Inc. */
/* Contributed by Matt Austern <austern@apple.com> 15 May 2003 */
/* { dg-do compile } */
struct X
{
- X() : x(3), y(4) { }
int x, y;
+protected:
+ int z;
};
typedef X* pX;
typedef __SIZE_TYPE__ size_t;
size_t yoff = size_t(&(pX(0)->y)); /* { dg-warning "invalid access" "" } */
-/* { dg-warning "macro was used incorrectly" "macro" { target *-*-* } 15 } */
+/* { dg-warning "macro was used incorrectly" "macro" { target *-*-* } 16 } */
« no previous file with comments | « gcc/gcc/testsuite/g++.dg/other/mmintrin.C ('k') | gcc/gcc/testsuite/g++.dg/other/packed1.C » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698