annotate gcc/testsuite/gfortran.dg/hollerith2.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! Program to test Hollerith constant.
kono
parents:
diff changeset
3 Program test
kono
parents:
diff changeset
4 implicit none
kono
parents:
diff changeset
5 integer i,j
kono
parents:
diff changeset
6 real r, x, y
kono
parents:
diff changeset
7 parameter (i = 4h1234)
kono
parents:
diff changeset
8 parameter (r = 4hdead)
kono
parents:
diff changeset
9 parameter (y = 4*r)
kono
parents:
diff changeset
10 parameter (j = selected_real_kind (i))
kono
parents:
diff changeset
11 x = 4H1234
kono
parents:
diff changeset
12 x = sin(r)
kono
parents:
diff changeset
13 x = x * r
kono
parents:
diff changeset
14 x = x / r
kono
parents:
diff changeset
15 x = x + r
kono
parents:
diff changeset
16 x = x - r
kono
parents:
diff changeset
17 end
kono
parents:
diff changeset
18 ! { dg-warning "Hollerith constant" "const" { target *-*-* } 7 }
kono
parents:
diff changeset
19 ! { dg-warning "Conversion" "conversion" { target *-*-* } 7 }
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 ! { dg-warning "Hollerith constant" "const" { target *-*-* } 8 }
kono
parents:
diff changeset
22 ! { dg-warning "Conversion" "conversion" { target *-*-* } 8 }
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 ! { dg-warning "Hollerith constant" "const" { target *-*-* } 11 }
kono
parents:
diff changeset
25 ! { dg-warning "Conversion" "conversion" { target *-*-* } 11 }
kono
parents:
diff changeset
26