Debian Codegraph @

gcc/testsuite/gfortran.dg/ubsan/pr106062.f90

raw
1 ! PR c++/106062
2 ! { dg-do compile }
3 ! { dg-options "-O2 -fsanitize=undefined" }
4
5 call test (reshape ((/ 'a', 'b', 'c', 'd' /), (/ 2, 2 /)))
6 contains
7 subroutine test (a)
8 character (*), dimension (:, :) :: a
9 if (len (a) .ne. 1) STOP
10 end
11 end