Debian Codegraph @

gcc/testsuite/gfortran.dg/pr79886.f90

raw
1 ! PR fortran/79886
2 ! { dg-do compile }
3 ! { dg-options "-Wpadded" }
4
5 subroutine pr79886
6 type :: foo
7 integer (kind=1) :: a
8 integer (kind=8) :: b ! { dg-warning "padding struct to align" }
9 integer (kind=1) :: c
10 integer (kind=8) :: d ! { dg-warning "padding struct to align" }
11 end type
12 type (foo) :: f
13 f%a = 1
14 f%b = 2
15 f%c = 3
16 f%d = 4
17 end subroutine