summaryrefslogtreecommitdiffstats
path: root/Tests/CustomCommand/generator.cxx
blob: 99da90ceb432e4536c56ae3236cbbe3db1a27541 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

int main(int argc, char *argv[])
{
  if ( argc < 2 )
    {
    fprintf(stderr, "Usage: %s <file>\n", argv[0]);
    return 1;
    }
  FILE *fp = fopen(argv[1],"w");
  
  fprintf(fp,"int generated() { return 3; }\n");
  fclose(fp);
  return 0;
}