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

Side by Side Diff: test/cxxflags/cxxflags.cc

Issue 235033003: Make test/cxxflags use a user define instead of __OPTIMIZE__ (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Created 6 years, 8 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 | « no previous file | test/cxxflags/cxxflags.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 Google Inc. All rights reserved. 1 /* Copyright (c) 2010 Google Inc. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 #include <stdio.h> 5 #include <stdio.h>
6 6
7 int main(int argc, char *argv[]) 7 int main(int argc, char *argv[])
8 { 8 {
9 #ifdef __OPTIMIZE__ 9 #ifdef ABC
10 printf("Using an optimization flag\n"); 10 printf("With define\n");
11 #else 11 #else
12 printf("Using no optimization flag\n"); 12 printf("No define\n");
13 #endif 13 #endif
14 return 0; 14 return 0;
15 } 15 }
OLDNEW
« no previous file with comments | « no previous file | test/cxxflags/cxxflags.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698