summaryrefslogtreecommitdiff
path: root/Tests/CustomCommand/generator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CustomCommand/generator.cxx')
-rw-r--r--Tests/CustomCommand/generator.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CustomCommand/generator.cxx b/Tests/CustomCommand/generator.cxx
new file mode 100644
index 0000000000..0cb70dbab0
--- /dev/null
+++ b/Tests/CustomCommand/generator.cxx
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+ FILE *fp = fopen(argv[1],"w");
+
+ fprintf(fp,"int generated() { return 3; }\n");
+ fclose(fp);
+}