Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
d8336257
Commit
d8336257
authored
Dec 22, 2008
by
Roberto Raggi
Browse files
Check the argument's type in tst_Semantic::function_declaration_2.
parent
3050034c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/auto/cplusplus/semantic/tst_semantic.cpp
View file @
d8336257
...
...
@@ -127,6 +127,13 @@ void tst_Semantic::function_declaration_2()
FullySpecifiedType
argTy
=
arg
->
type
();
QVERIFY
(
argTy
->
isReferenceType
());
QVERIFY
(
argTy
->
asReferenceType
()
->
elementType
().
isConst
());
NamedType
*
namedTy
=
argTy
->
asReferenceType
()
->
elementType
()
->
asNamedType
();
QVERIFY
(
namedTy
);
QVERIFY
(
namedTy
->
name
());
Identifier
*
namedTypeId
=
namedTy
->
name
()
->
asNameId
()
->
identifier
();
QVERIFY
(
namedTypeId
);
QCOMPARE
(
QByteArray
(
namedTypeId
->
chars
(),
namedTypeId
->
size
()),
QByteArray
(
"QString"
));
QVERIFY
(
decl
->
name
()
->
isNameId
());
Identifier
*
funId
=
decl
->
name
()
->
asNameId
()
->
identifier
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment