blob: 115b7be0ab75b58090fb07febff8edb172fcc986 (
plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "typedef.h"
//
// Test wrapping of a typedef
//
bool arrayFuncInt(std::vector<int> a)
{
return a.empty();
}
bool arrayFuncIntTypedef(MyArray a)
{
return arrayFuncInt(a);
}
std::vector<int> arrayFuncIntReturn(int size)
{
return std::vector<int>(size);
}
MyArray arrayFuncIntReturnTypedef(int size)
{
return arrayFuncIntReturn(size);
}
//
// Test wrapping of a typedef of a typedef
//
bool arrayFunc(std::vector<int> a)
{
return a.empty();
}
bool arrayFuncTypedef(MyArray a)
{
return arrayFunc(a);
}
std::vector<int> arrayFuncReturn(int size)
{
return std::vector<int>(size);
}
MyArray arrayFuncReturnTypedef(int size)
{
return arrayFuncReturn(size);
}
|