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

Side by Side Diff: tests/toolchain/needs_libgcc.c

Issue 454593002: PNaCl driver: Add libgcc to mixed native/bitcode links (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: fix 80col and comment typo Created 6 years, 4 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
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6 #include <stdint.h>
Mark Seaborn 2014/08/07 23:13:02 Nit: add empty line before this
Derek Schuff 2014/08/08 21:11:55 Done.
7 #include <stdlib.h>
8
9 int main(int argc, char *argv[]) {
10 if (argc < 3)
11 return 1;
12 uint64_t a = atoll(argv[1]);
13 uint64_t b = atoll(argv[2]);
14 /* 64-bit divide uses a libgcc/compiler-rt call on x86-32 and ARM. */
15 if (a / b == 3ULL)
16 return 0;
17 return 1;
18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698