Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 09ee4ff86605709785f6d4a0a613343d > files > 21

perl-IO-Socket-SSL-0.80-1mdk.i586.rpm

use Config;

print "cc: " . $Config{'cc'} . "\n";

if(runptrcasttst()) {
  print "ok\n";
} else {
  print "not ok.\n";
}

sub runptrcasttst {
  if( !($r = system "$Config{'cc'} -o ptrcasttst ptrcasttst.c") ) {
    print "ok\n";
  } else {
    print "not ok\n";
    return 0;
  }
  if( !($r = system "./ptrcasttst") ) {
    print "ok\n";
    return 1;
  } else {
    print "not ok\n";
    return 0;
  }
  return 0;
}