summaryrefslogtreecommitdiff
path: root/deps/gyp/test/rules/src/subdir4/program.c
blob: ad647f4eb991b1312a9f35f742802f8eb5ae73b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

// Use the assembly function in linux and mac where it is built.
#if PLATFORM_LINUX || PLATFORM_MAC
extern int asm_function(void);
#else
int asm_function() {
  return 41;
}
#endif

int main(void)
{
  fprintf(stdout, "Hello from program.c\n");
  fflush(stdout);
  fprintf(stdout, "Got %d.\n", asm_function());
  fflush(stdout);
  return 0;
}