OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [trim_optimize_3.f90] - Rev 704

Go to most recent revision | Compare with Previous | Blame | View Log

! { dg-do run }
! { dg-options "-O -fdump-tree-original" }
! PR 47065 - replace trim with substring expressions.
program main
  character(len=10) :: a, b
  character(kind=4,len=10) :: a4, b4
  character(len=100) :: line
  a = 'bcd'
  b = trim(a) // 'x'
  if (b /= 'bcdx') call abort
  a4 = 4_"bcd"
  b4 = trim(a4) // 4_'x'
  if (b4 /= 4_'bcdx') call abort
end
! { dg-final { scan-tree-dump-times "string_len_trim" 2 "original" } }
! { dg-final { cleanup-tree-dump "original" } }

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.