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

Side by Side Diff: test/mac/xcode-gcc/warn_about_invalid_offsetof_macro.cc

Issue 10451028: Add support for GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO to xcode emulation. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: grrrr Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/mac/xcode-gcc/test.gyp ('k') | test/mac/xcode-gcc/warn_about_missing_newline.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2012 Google Inc. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #define offsetof(st, m) ((unsigned)((char*)&((st*)0)->m - (char*)0))
6
7 struct MyStruct {
8 virtual void MyFunc() = 0;
9 int my_member;
10 };
11
12 int main() {
13 unsigned x = offsetof(MyStruct, my_member);
14 return x ? 0 : 1;
15 }
OLDNEW
« no previous file with comments | « test/mac/xcode-gcc/test.gyp ('k') | test/mac/xcode-gcc/warn_about_missing_newline.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698