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

Unified Diff: gcc/gcc/testsuite/c-c++-common/builtin-offsetof.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/ada/acats/run_all.sh ('k') | gcc/gcc/testsuite/g++.dg/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/c-c++-common/builtin-offsetof.c
diff --git a/gcc/gcc/testsuite/c-c++-common/builtin-offsetof.c b/gcc/gcc/testsuite/c-c++-common/builtin-offsetof.c
index 392f3933d9d399df2d81d7dacaffa4eb593ffda6..6d97775467d31675dedb01c40ab5bce03d702ba5 100644
--- a/gcc/gcc/testsuite/c-c++-common/builtin-offsetof.c
+++ b/gcc/gcc/testsuite/c-c++-common/builtin-offsetof.c
@@ -22,6 +22,7 @@ f0 ()
__builtin_offsetof(struct B, p[0]); // OK
__builtin_offsetof(struct B, p[9]); // OK
__builtin_offsetof(struct B, p[10]); // OK
+ __builtin_offsetof(struct B, p[11]); // { dg-warning "greater than size" }
__builtin_offsetof(struct B, a.p); // OK
__builtin_offsetof(struct B, p[0]); // OK
__builtin_offsetof(struct B, a.p[0]); // { dg-error "non constant address" }
« no previous file with comments | « gcc/gcc/testsuite/ada/acats/run_all.sh ('k') | gcc/gcc/testsuite/g++.dg/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698