1//===-- executor_symbol_def_test.cpp --------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#include "executor_symbol_def.h"
10#include "simple_packed_serialization_utils.h"
11#include "gtest/gtest.h"
12
13using namespace __orc_rt;
14
15TEST(ExecutorSymbolDefTest, Serialization) {
16 blobSerializationRoundTrip<SPSExecutorSymbolDef>(Value: ExecutorSymbolDef{});
17 blobSerializationRoundTrip<SPSExecutorSymbolDef>(
18 Value: ExecutorSymbolDef{ExecutorAddr{0x70}, {JITSymbolFlags::Callable, 9}});
19}

source code of compiler-rt/lib/orc/tests/unit/executor_symbol_def_test.cpp