summaryrefslogtreecommitdiffstats
path: root/Tests/ExportImport/Export/testExe1.c
blob: 39177d02b62e492ab6d120f6ef1e78721baa0c42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>

int main(int argc, const char* argv[])
{
  if(argc < 2)
    {
    fprintf(stderr, "Must specify output file.\n");
    return 1;
    }
  {
  FILE* f = fopen(argv[1], "w");
  if(f)
    {
    fprintf(f, "int generated_by_testExe1() { return 0; }\n");
    fclose(f);
    }
  else
    {
    fprintf(stderr, "Error writing to %s\n", argv[1]);
    return 1;
    }
  }
  return 0;
}