summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/g77/cpp4.F
blob: bc14e0469ea94add30f8306136cb4d91fbee6d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
c { dg-do run }
C The preprocessor must not mangle Hollerith constants
C which contain apostrophes.
      integer i
      character(4) j
      data i /4hbla'/
      write (j, '(4a)') i
      if (j .ne. "bla'") call abort
      end

      ! { dg-warning "Hollerith constant" "const" { target *-*-* } 6 }
      ! { dg-warning "Conversion" "conversion" { target *-*-* } 6 }