• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 * Copyright (C) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *	http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 #include "functionalext.h"
16 #include "common.h"
17 
VerneedsTest_testCase1()18 static void VerneedsTest_testCase1() {
19     // get sym from adlt from outer lib
20     EXPECT_EQ(__func__, 1, get_val_fromA());
21     EXPECT_EQ(__func__, 2, get_val_fromB());
22 }
23 
VerneedsTest_testCase2()24 static void VerneedsTest_testCase2() {
25     // different names, same versions
26     EXPECT_EQ(__func__, 3, get_duplicateA_fromA());
27     EXPECT_EQ(__func__, 4, get_duplicateB_fromB());
28     // same names, different versions
29     EXPECT_EQ(__func__, 5, get_duplicate1_fromA());
30     EXPECT_EQ(__func__, 6, get_duplicate1_fromB());
31     // same names, same versions
32     EXPECT_EQ(__func__, 7, get_duplicate2_fromA());
33     EXPECT_EQ(__func__, 7, get_duplicate2_fromB());
34 }
35 
main(int argc,char ** argv)36 int main(int argc, char **argv) {
37     VerneedsTest_testCase1();
38     VerneedsTest_testCase2();
39     return t_status;
40 }
41