Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git] / ndk / sources / android / crazy_linker / tests / bar.cpp
blobf6cd21c65b91d788ca9010f66f534c8130a07a64
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include <android/log.h>
6 #include <stdio.h>
8 extern "C" void Foo();
10 extern "C" void Bar() {
11 printf("%s: Entering\n", __FUNCTION__);
12 __android_log_print(ANDROID_LOG_INFO, "bar", "Hi There!");
13 fprintf(stderr, "Hi There! from Bar\n");
15 printf("%s: Calling Foo()\n", __FUNCTION__);
16 Foo();
18 printf("%s: Exiting\n", __FUNCTION__);