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

Side by Side Diff: tests/pnacl_dynamic_loading/test_pll_c.c

Issue 1825893002: PNaCl Dynamic Linking: Added portable dependencies to shared objects. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Bumping Feature Version Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The Native Client Authors. All rights reserved. 2 * Copyright 2016 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 extern int module_a_var; 7 extern int module_a_var;
8 extern int module_b_var;
8 9
9 int module_b_var = 1234; 10 int get_module_a_var() {
11 return module_a_var;
12 }
10 13
11 int *addr_of_module_a_var = &module_a_var; 14 int get_module_b_var() {
15 return module_b_var;
16 }
17
18 int get_module_c_var() {
19 return module_a_var - module_b_var;
20 }
OLDNEW
« no previous file with comments | « tests/pnacl_dynamic_loading/pll_symbols_test.cc ('k') | toolchain_build/toolchain_build_pnacl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698