blob: 68f6705607aea2d6c47f3b636f9f4d4536cc293b [file] [log] [blame] [edit]
// Copyright 2023 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/driver/symbols/symbols.h>
#include <gtest/gtest.h>
TEST(DriverSymbolsAbi, EncodedFidlMessage) {
static_assert(sizeof(EncodedFidlMessage) == 24);
static_assert(offsetof(EncodedFidlMessage, bytes) == 0);
static_assert(offsetof(EncodedFidlMessage, handles) == 8);
static_assert(offsetof(EncodedFidlMessage, num_bytes) == 16);
static_assert(offsetof(EncodedFidlMessage, num_handles) == 20);
}