cc_o2.t 851 B

12345678910111213141516171819202122232425262728293031323334
  1. #! /usr/bin/env perl
  2. # better use testcc.sh -O2 for debugging
  3. BEGIN {
  4. use Config;
  5. unless (-d '.git' and !$ENV{NO_AUTHOR}) {
  6. print "1..0 #SKIP Only if -d .git\n";
  7. exit;
  8. }
  9. #if ($Config{useithreads}) {
  10. # print "1..0 #SKIP -faelem broken for threaded perl\n";
  11. # exit;
  12. #}
  13. if ($ENV{PERL_CORE}){
  14. chdir('t') if -d 't';
  15. @INC = ('.', '../lib');
  16. } else {
  17. unshift @INC, 't';
  18. #push @INC, "blib/arch", "blib/lib";
  19. }
  20. require 'test.pl'; # for run_perl()
  21. }
  22. use strict;
  23. #my $DEBUGGING = ($Config{ccflags} =~ m/-DDEBUGGING/);
  24. #my $ITHREADS = ($Config{useithreads});
  25. prepare_c_tests();
  26. my @todo = todo_tests_default("cc_o2");
  27. # skip core dump causing known limitations, like custom sort or runtime labels
  28. my @skip = (14,21,24,25,27,30,31,46,103,105);
  29. # fails >=5.16 with -faelem
  30. run_c_tests("CC,-O2", \@todo, \@skip);