view gcc/testsuite/gcc.c-torture/execute/builtins/strnlen.x @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

# At -Og no pass records the global range information
# necessary to optimize the strnlen calls down to
# a constant.  The framework assumes that the test
# will never call strnlen when the optimizer is
# enabled.  So we filter out the -Og run here.

set torture_eval_before_compile {
  if {[string match {*-Og*} "$option"]} {
    continue
  }
}

return 0