Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/warn_truncated.f90

raw
1 ! { dg-do compile }
2 ! { dg-additional-options "-std=f2018" }
3 !
4 ! PR fortran/94709
5 !
6 ! Check that 'Line truncated' gets printed as appropriate
7 !
8 integer i
9 i = 0
10 !$omp target ! map()
11 !$omp end target
12
13 !$omp target map() ! { dg-error "Line truncated" }
14 !$acc kernels copy()
15 !a = 5
16 !$acc end kernels
17 !$omp end target
18 end
19
20 ! { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 }