summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/win32/system.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/win32/system.t b/t/win32/system.t
index bd65412564..5384d7c279 100644
--- a/t/win32/system.t
+++ b/t/win32/system.t
@@ -32,10 +32,28 @@ open(my $F, ">$testdir/$exename.c")
or die "Can't create $testdir/$exename.c: $!";
print $F <<'EOT';
#include <stdio.h>
+#ifdef __BORLANDC__
+#include <windows.h>
+#endif
int
main(int ac, char **av)
{
int i;
+#ifdef __BORLANDC__
+ char *h,*s = GetCommandLine();
+ int j=0;
+ av[0] = s;
+ if (s[0]=='"') {
+ for(;s[++j]!='"';)
+ ;
+ av[0]++;
+ }
+ else {
+ for(;s[++j]!=' ';)
+ ;
+ }
+ s[j]=0;
+#endif
for (i = 0; i < ac; i++)
printf("[%s]", av[i]);
printf("\n");