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

Side by Side Diff: tests/stacked_irt/irt_hello_world.c

Issue 25027006: Stackable IRT Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/untrusted/nacl/start.c ('k') | tests/stacked_irt/irt_hello_world.stdout » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2013 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file.
5 */
6
7 #include <stdio.h>
8
9 #include "native_client/src/untrusted/irt/irt.h"
10 #include "native_client/src/untrusted/irt/irt_interfaces.h"
11
12 #include "native_client/tests/stacked_irt/irt_trace.h"
13
14 /*
15 void (*const preinit_array []) (void)
16 __attribute__ ((section(".preinit_array"),
17 aligned(sizeof(void *)))) = {
18 &irt_logged_init
19 };
20
21 void (*const fini_array []) (void)
22 __attribute__ ((section(".fini_array"),
23 aligned(sizeof(void *)))) = {
24 &irt_logged_fini
25 };
26 */
27
28 /*
29 struct nacl_irt_module nacl_irt_array[] = {
30 { irt_logged_module_init, irt_logged_module_fini },
31 { NULL, NULL }
32 };
33 */
34
35 void hello_world(void) {
36 printf("Hello, World!\n");
37 }
38
39 int main(int argc, char* argv[]) {
40 hello_world();
41 return 0;
42 }
OLDNEW
« no previous file with comments | « src/untrusted/nacl/start.c ('k') | tests/stacked_irt/irt_hello_world.stdout » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698