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

Side by Side Diff: tests/pnacl_dynamic_loading/dependencies_test.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: 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
(Empty)
1 /*
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
4 * found in the LICENSE file.
5 */
6
7 #include <stdio.h>
8
9 /*
10 * These functions would typically be declared in a shared header file, but for
11 * testing convenience, they are defined here.
12 */
13 int get_module_a_var();
14 int get_module_b_var();
15 int get_module_c_var();
16
17 /*
18 * The loader should only need to load "dependencies_test", and the dependencies
19 * should by loaded automatically by the pll_loader.
20 *
21 * | dependencies_test (depends on libc and test_pll_c)
22 * | libc
23 * * No dependencies
24 * | test_pll_c (depends on test_pll_a and test_pll_b)
25 * | test_pll_a
26 * * No dependencies
27 * | test_pll_b (depends on test_pll_a)
28 * | test_pll_a
29 * * No dependencies
30 */
31
32 int main(int argc, char* argv[]) {
Mark Seaborn 2016/03/30 23:24:57 Use " *" spacing
Sean Klein 2016/04/01 23:12:24 Done.
33 printf("%d\n", get_module_a_var());
34 printf("%d\n", get_module_b_var());
35 printf("%d\n", get_module_c_var());
36 return 0;
37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698