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
Marco Bubke
flatpak-qt-creator
Commits
b043d1d0
Commit
b043d1d0
authored
Dec 15, 2008
by
Roberto Raggi
Browse files
More testing.
parent
f5976d2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/auto/cplusplus/ast/tst_ast.cpp
View file @
b043d1d0
...
...
@@ -152,7 +152,15 @@ void tst_AST::while_condition_statement()
QCOMPARE
(
condition
->
type_specifier
->
asSimpleSpecifier
()
->
specifier_token
,
3U
);
QVERIFY
(
condition
->
type_specifier
->
next
==
0
);
QVERIFY
(
condition
->
declarator
!=
0
);
QVERIFY
(
condition
->
declarator
->
core_declarator
!=
0
);
QVERIFY
(
condition
->
declarator
->
core_declarator
->
asDeclaratorId
()
!=
0
);
QVERIFY
(
condition
->
declarator
->
core_declarator
->
asDeclaratorId
()
->
name
!=
0
);
QVERIFY
(
condition
->
declarator
->
core_declarator
->
asDeclaratorId
()
->
name
->
asSimpleName
()
!=
0
);
QCOMPARE
(
condition
->
declarator
->
core_declarator
->
asDeclaratorId
()
->
name
->
asSimpleName
()
->
identifier_token
,
4U
);
QVERIFY
(
condition
->
declarator
->
postfix_declarators
==
0
);
QVERIFY
(
condition
->
declarator
->
initializer
!=
0
);
QVERIFY
(
condition
->
declarator
->
initializer
->
asSimpleName
()
!=
0
);
QCOMPARE
(
condition
->
declarator
->
initializer
->
asSimpleName
()
->
identifier_token
,
6U
);
// check the `body' statement
CompoundStatementAST
*
body_stmt
=
stmt
->
statement
->
asCompoundStatement
();
...
...
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