1 //===-- executor_symbol_def_test.cpp --------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "executor_symbol_def.h"
10 #include "simple_packed_serialization_utils.h"
11 #include "gtest/gtest.h"
13 using namespace orc_rt
;
15 TEST(ExecutorSymbolDefTest
, Serialization
) {
16 blobSerializationRoundTrip
<SPSExecutorSymbolDef
>(ExecutorSymbolDef
{});
17 blobSerializationRoundTrip
<SPSExecutorSymbolDef
>(
18 ExecutorSymbolDef
{ExecutorAddr
{0x70}, {JITSymbolFlags::Callable
, 9}});