efl

Форк
0
/
eolian_cxx_test_inheritance.cc 
61 строка · 1.3 Кб
1
/*
2
 * Copyright 2019 by its authors. See AUTHORS.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
#ifdef HAVE_CONFIG_H
17
# include <config.h>
18
#endif
19

20
#include <Eo.h>
21
#include <Ecore.h>
22

23
#define EOLIANCXXTEST_API
24
#define EOLIANCXXTEST_API_WEAK
25

26
#include <simple.eo.hh>
27

28
#include "eolian_cxx_suite.h"
29

30
// struct bar
31
// : efl::eo::inherit<bar, nonamespace::Simple>
32
// {
33
//   bar()
34
//     : inherit_base(efl::eo::parent = nullptr)
35
//   {}
36

37
//   bool simple_get()
38
//   {
39
//      printf("calling bar::%s\n", __func__);
40
//      return false;
41
//   }
42
// };
43

44
// void foo(nonamespace::Simple is)
45
// {
46
//    fail_if(is.simple_get());
47
// }
48

49
// START_TEST(eolian_cxx_test_inheritance_simple)
50
// {
51
//   efl::eo::eo_init i;
52
//   bar b;
53
//   foo(b);
54
// }
55
// END_TEST
56

57
void
58
eolian_cxx_test_inheritance(TCase* /*tc*/)
59
{
60
   // tcase_add_test(tc, eolian_cxx_test_inheritance_simple);
61
}
62

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.