comparison gcc/testsuite/gfortran.dg/achar_3.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 ! { dg-do compile }
2 ! { dg-options "-Wall" }
3 program main
4 print *,achar(-3) ! { dg-error "negative" }
5 print *,achar(200) ! { dg-warning "outside of range" }
6 print *,char(222+221) ! { dg-error "too large for the collating sequence" }
7 print *,char(-44) ! { dg-error "negative" }
8 print *,iachar("ü") ! { dg-warning "outside of range" }
9 end program main