• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright (c) 2022 Huawei Device Co., Ltd.
2  * Licensed under the Apache License, Version 2.0 (the "License");
3  * you may not use this file except in compliance with the License.
4  * You may obtain a copy of the License at
5  *
6  *     http://www.apache.org/licenses/LICENSE-2.0
7  *
8  * Unless required by applicable law or agreed to in writing, software
9  * distributed under the License is distributed on an "AS IS" BASIS,
10  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11  * See the License for the specific language governing permissions and
12  * limitations under the License.
13  */
14 
15 #include <stdio.h>
16 #include <string.h>
17 #include "test.h"
18 
19 extern void *__aeabi_read_tp();
20 /**
21  * @tc.name      : memset_0100
22  * @tc.desc      : Test __aeabi_read_tp method
23  * @tc.level     : Level 1
24  */
aeabi_read_tp_0100(void)25 void aeabi_read_tp_0100(void)
26 {
27     void *result = __aeabi_read_tp();
28     if (result < 0) {
29         t_error("%s __aeabi_read_tp error get result is %d\n", __func__, __aeabi_read_tp);
30     }
31 }
32 
main()33 int main()
34 {
35     aeabi_read_tp_0100();
36     return t_status;
37 }