aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testreferencetopointer.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-03-22 10:31:34 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:09:57 -0300
commite8f37f7ee2b7ea6a7d25732dbd335687b5493ec3 (patch)
tree19f7164efa01f91628ac9966b082c596efb46afa /tests/testreferencetopointer.h
parent60c0865c6af16c91244123fe6f2c328f5fc912a4 (diff)
Meta type minimal signature should place reference symbol after pointer symbols.
The minimalSignature method was placing '&' before '*'. For example, the signature "foo(Bar*&)" was becoming "foo(Bar&*)". An unit test was added to verify AbstractMetaType::minimalSignature(). Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org>
Diffstat (limited to 'tests/testreferencetopointer.h')
-rw-r--r--tests/testreferencetopointer.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/testreferencetopointer.h b/tests/testreferencetopointer.h
new file mode 100644
index 000000000..b682285b5
--- /dev/null
+++ b/tests/testreferencetopointer.h
@@ -0,0 +1,36 @@
+/*
+* This file is part of the API Extractor project.
+*
+* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+*
+* Contact: PySide team <contact@pyside.org>
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* version 2 as published by the Free Software Foundation.
+*
+* This program is distributed in the hope that it will be useful, but
+* WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA
+*
+*/
+
+#ifndef TESTREFERENCETOPOINTER_H
+#define TESTREFERENCETOPOINTER_H
+
+#include <QObject>
+
+class TestReferenceToPointer : public QObject
+{
+ Q_OBJECT
+ private slots:
+ void testReferenceToPointerArgument();
+};
+
+#endif