OLD | NEW |
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 } |
OLD | NEW |