hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: BSD-2-Clause
/*
 * Copyright (c) 2020 Huawei Technologies Co., Ltd
 */
 
extern "C" {
#include "os_test_lib.h"
#include <tee_api_types.h>
}
 
class OsTestLibCtorTest {
public:
   OsTestLibCtorTest() : val(2) {}
 
   int val;
};
 
static OsTestLibCtorTest os_test_lib_ctor_test;
 
TEE_Result os_test_shlib_cxx_ctor(void)
{
   if (os_test_lib_ctor_test.val != 2)
       return TEE_ERROR_GENERIC;
 
   return TEE_SUCCESS;
}