aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-06-30 13:37:51 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-08-03 06:21:06 +0000
commit8c699313c85419dc73db35dbdefc844d88a039c6 (patch)
tree53e035e8ae21a7a02657e3a3f6ef30e2b97959e7 /sources/shiboken2/ApiExtractor/tests
parent700ebd831f9ee7143c525bb936cd55f2a91adcc7 (diff)
Shiboken: No longer change arrays[] to pointer types
In AbstractMetaBuilder, no longer change array types like "int[]" to "int*". Task-number: PYSIDE-354 Task-number: PYSIDE-516 Change-Id: Ia9e15ae3fca895bf179275eb31a94323d91f4941 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/tests')
-rw-r--r--sources/shiboken2/ApiExtractor/tests/testarrayargument.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/tests/testarrayargument.cpp b/sources/shiboken2/ApiExtractor/tests/testarrayargument.cpp
index 72d29fb06..408c51461 100644
--- a/sources/shiboken2/ApiExtractor/tests/testarrayargument.cpp
+++ b/sources/shiboken2/ApiExtractor/tests/testarrayargument.cpp
@@ -70,6 +70,7 @@ void TestArrayArgument::testArraySignature()
struct A {\n\
void mi1(int arg[5]);\n\
void mi1c(const int arg[5]);\n\
+ void mi1cu(const int arg[]);\n\
void muc2(unsigned char *arg[2][3]);\n\
void mc2c(const char *arg[5][6]);\n\
};\n";
@@ -88,6 +89,8 @@ void TestArrayArgument::testArraySignature()
QLatin1String("mi1(int[5])"));
QCOMPARE(functionMinimalSignature(classA, QLatin1String("mi1c")),
QLatin1String("mi1c(const int[5])"));
+ QCOMPARE(functionMinimalSignature(classA, QLatin1String("mi1cu")),
+ QLatin1String("mi1cu(const int[])"));
QCOMPARE(functionMinimalSignature(classA, QLatin1String("muc2")),
QLatin1String("muc2(unsigned char*[2][3])"));
QCOMPARE(functionMinimalSignature(classA, QLatin1String("mc2c")),