Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / toolchain / wrap_lib1.c
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
7 /*
8  * See wrap_main.c.
9  */
10
11 #include <stdio.h>
12
13 extern int __real_bar(void);
14
15 int foo(void) {
16   printf("foo()\n");
17   return 2;
18 }
19
20 int bar(void) {
21   printf("bar()\n");
22   return 3;
23 }
24
25 int __wrap_bar(void) {
26   printf("__wrap_bar()\n");
27   return 7 + __real_bar();
28 }