[flang] Two tweaks to mollify buildbots

One test's expected output needs adjustment, and one new compiler
warning needs to be silenced.
This commit is contained in:
peter klausler 2021-07-20 19:40:43 -07:00
parent d3738a09fb
commit 13e08de91d
2 changed files with 4 additions and 3 deletions

View File

@ -271,7 +271,8 @@ FILE *Component::Dump(FILE *f) const {
std::fprintf(f, " category %d kind %d rank %d offset 0x%zx\n", category_,
kind_, rank_, static_cast<std::size_t>(offset_));
if (initialization_) {
std::fprintf(f, " initialization @ 0x%p:\n", initialization_);
std::fprintf(f, " initialization @ 0x%p:\n",
reinterpret_cast<const void *>(initialization_));
for (int j{0}; j < 128; j += sizeof(std::uint64_t)) {
std::fprintf(f, " [%3d] 0x%016jx\n", j,
static_cast<std::uintmax_t>(

View File

@ -47,8 +47,8 @@ subroutine s5(n)
integer, len :: l2
real :: b(l1, l2)
end type
type(t1(n)) :: x1 !CHECK: x1 size=48 offset=
type(t2(n,n)) :: x2 !CHECK: x2 size=56 offset=
type(t1(n)) :: x1 !CHECK: x1 size=40 offset=
type(t2(n,n)) :: x2 !CHECK: x2 size=48 offset=
!CHECK: a size=48 offset=0:
!CHECK: b size=72 offset=0:
end