3 ! PR 44649: [OOP] F2008: storage_size intrinsic
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
17 type(t), dimension(1:3) :: b
18 class(t), allocatable :: cp
22 if (sizeof(a) /= 8) call abort()
23 if (storage_size(a) /= 64) call abort()
25 if (sizeof(b) /= 24) call abort()
26 if (storage_size(b) /= 64) call abort()
28 if (sizeof(cp) /= 12) call abort()
29 if (storage_size(cp) /= 96) call abort()