Skip to content
GitLab
Menu
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
d5c9141c
Commit
d5c9141c
authored
Feb 09, 2009
by
Roberto Raggi
Browse files
Compile.
parent
a2fd10fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/auto/cplusplus/semantic/tst_semantic.cpp
View file @
d5c9141c
...
@@ -110,7 +110,7 @@ void tst_Semantic::function_declaration_1()
...
@@ -110,7 +110,7 @@ void tst_Semantic::function_declaration_1()
QVERIFY
(
decl
);
QVERIFY
(
decl
);
FullySpecifiedType
declTy
=
decl
->
type
();
FullySpecifiedType
declTy
=
decl
->
type
();
Function
*
funTy
=
declTy
->
asFunction
();
Function
*
funTy
=
declTy
->
asFunction
Type
();
QVERIFY
(
funTy
);
QVERIFY
(
funTy
);
QVERIFY
(
funTy
->
returnType
()
->
isVoidType
());
QVERIFY
(
funTy
->
returnType
()
->
isVoidType
());
QCOMPARE
(
funTy
->
argumentCount
(),
0U
);
QCOMPARE
(
funTy
->
argumentCount
(),
0U
);
...
@@ -133,7 +133,7 @@ void tst_Semantic::function_declaration_2()
...
@@ -133,7 +133,7 @@ void tst_Semantic::function_declaration_2()
QVERIFY
(
decl
);
QVERIFY
(
decl
);
FullySpecifiedType
declTy
=
decl
->
type
();
FullySpecifiedType
declTy
=
decl
->
type
();
Function
*
funTy
=
declTy
->
asFunction
();
Function
*
funTy
=
declTy
->
asFunction
Type
();
QVERIFY
(
funTy
);
QVERIFY
(
funTy
);
QVERIFY
(
funTy
->
returnType
()
->
isVoidType
());
QVERIFY
(
funTy
->
returnType
()
->
isVoidType
());
QCOMPARE
(
funTy
->
argumentCount
(),
1U
);
QCOMPARE
(
funTy
->
argumentCount
(),
1U
);
...
@@ -260,7 +260,7 @@ void tst_Semantic::typedef_1()
...
@@ -260,7 +260,7 @@ void tst_Semantic::typedef_1()
Declaration
*
typedefPointDecl
=
doc
->
globals
->
symbolAt
(
1
)
->
asDeclaration
();
Declaration
*
typedefPointDecl
=
doc
->
globals
->
symbolAt
(
1
)
->
asDeclaration
();
QVERIFY
(
typedefPointDecl
);
QVERIFY
(
typedefPointDecl
);
QVERIFY
(
typedefPointDecl
->
isTypedef
());
QVERIFY
(
typedefPointDecl
->
isTypedef
());
QCOMPARE
(
typedefPointDecl
->
type
()
->
asClass
(),
anonStruct
);
QCOMPARE
(
typedefPointDecl
->
type
()
->
asClass
Type
(),
anonStruct
);
Function
*
mainFun
=
doc
->
globals
->
symbolAt
(
2
)
->
asFunction
();
Function
*
mainFun
=
doc
->
globals
->
symbolAt
(
2
)
->
asFunction
();
QVERIFY
(
mainFun
);
QVERIFY
(
mainFun
);
...
@@ -315,7 +315,7 @@ void tst_Semantic::typedef_3()
...
@@ -315,7 +315,7 @@ void tst_Semantic::typedef_3()
QVERIFY
(
typedefPointDecl
);
QVERIFY
(
typedefPointDecl
);
QVERIFY
(
typedefPointDecl
->
isTypedef
());
QVERIFY
(
typedefPointDecl
->
isTypedef
());
QVERIFY
(
typedefPointDecl
->
type
()
->
isPointerType
());
QVERIFY
(
typedefPointDecl
->
type
()
->
isPointerType
());
QCOMPARE
(
typedefPointDecl
->
type
()
->
asPointerType
()
->
elementType
()
->
asClass
(),
QCOMPARE
(
typedefPointDecl
->
type
()
->
asPointerType
()
->
elementType
()
->
asClass
Type
(),
_pointStruct
);
_pointStruct
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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