Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / barebones / barebones_hello_world.c
1 /*
2  * Copyright 2009 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  * NaCl test for simple hello world not using newlib
9  */
10
11 #include "barebones.h"
12
13
14 int main(void) {
15   myprint("@null\n");
16   NACL_SYSCALL(null)();
17
18   myprint("@write\n");
19   myprint("hello worldn");
20
21   myprint("@exit\n");
22   NACL_SYSCALL(exit)(55);
23   /* UNREACHABLE */
24   return 0;
25 }