Commits

Steven Knight  committed d4e781b

Add dummy C code to use argc and argv in tests.

  • Participants
  • Parent commits 184885e

Comments (0)

Files changed (3)

File test/Default.py

 int
 main(int argc, char *argv[])
 {
+	argv[argc++] = "--";
 	printf("%s\n");
 	exit (0);
 }
 int
 main(int argc, char *argv[])
 {
+	argv[argc++] = "--";
 	printf("%s\n");
 	exit (0);
 }

File test/Program-j.py

 int
 main(int argc, char *argv[])
 {
+    argv[argc++] = "--";
     printf(\"f1.c\n\");
     exit (0);
 }
 int
 main(int argc, char *argv[])
 {
+    argv[argc++] = "--";
     printf(\"f2.c\n\");
     exit (0);
 }
 int
 main(int argc, char *argv[])
 {
+    argv[argc++] = "--";
     printf(\"f3.c\n\");
     exit (0);
 }
 int
 main(int argc, char *argv[])
 {
+    argv[argc++] = "--";
     printf(\"f4.c\n\");
     exit (0);
 }

File test/Program.py

 int
 main(int argc, char *argv[])
 {
+	argv[argc++] = "--";
 	printf("foo.c\n");
 	exit (0);
 }