mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@8704 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
857d949be0
commit
117c9ffdca
5 changed files with 60 additions and 1 deletions
|
|
@ -57,7 +57,11 @@ file
|
|||
test25.inc,
|
||||
test25.out,
|
||||
test26.in,
|
||||
test26.out;
|
||||
test26.out,
|
||||
test27.in,
|
||||
test27.out,
|
||||
test28.in,
|
||||
test28.out;
|
||||
|
||||
mainconfig
|
||||
"" = "",
|
||||
|
|
|
|||
5
autotest/CppParser/test27.in
Normal file
5
autotest/CppParser/test27.in
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
struct Alfa {
|
||||
unsigned x:5;
|
||||
unsigned y:10;
|
||||
String h;
|
||||
};
|
||||
8
autotest/CppParser/test27.out
Normal file
8
autotest/CppParser/test27.out
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Alfa {
|
||||
STRUCT, name: Alfa, qitem: struct, qtype: Alfa, qptype: , natural: struct Alfa, line 1, using
|
||||
INSTANCEVARIABLE, name: x, qitem: x, qtype: , qptype: , natural: unsigned x:5, line 2, using
|
||||
INSTANCEVARIABLE, name: y, qitem: y, qtype: , qptype: , natural: unsigned y:10, line 3, using
|
||||
INSTANCEVARIABLE, name: h, qitem: h, qtype: String, qptype: , natural: String h, line 4, using
|
||||
}
|
||||
<locals> {
|
||||
}
|
||||
19
autotest/CppParser/test28.in
Normal file
19
autotest/CppParser/test28.in
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
template <class T>
|
||||
struct Vector {
|
||||
struct Iterator {
|
||||
template<class V>
|
||||
V operator->(T);
|
||||
};
|
||||
|
||||
Iterator begin();
|
||||
};
|
||||
|
||||
struct Point { x, y };
|
||||
|
||||
void Foo() {
|
||||
Point x;
|
||||
Vector<Point> v;
|
||||
const auto& y = x;
|
||||
auto vv = v;
|
||||
for(auto i : v) {
|
||||
for(const auto& ii : vv) {
|
||||
23
autotest/CppParser/test28.out
Normal file
23
autotest/CppParser/test28.out
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
Vector {
|
||||
STRUCTTEMPLATE, name: Vector, qitem: struct, qtype: Vector, qptype: , natural: template <class T> struct Vector, line 1, using
|
||||
INSTANCEFUNCTION, name: begin, qitem: begin(), qtype: Vector::Iterator, qptype: , natural: Iterator begin(), line 8, using
|
||||
}
|
||||
Vector::Iterator {
|
||||
STRUCT, name: Iterator, qitem: struct, qtype: Vector::Iterator, qptype: , natural: struct Iterator, line 3, using
|
||||
INSTANCEFUNCTIONTEMPLATE, name: operator->, qitem: operator->(T), qtype: V, qptype: 0, natural: template <class V> V operator->(T), line 4, using
|
||||
}
|
||||
Point {
|
||||
STRUCT, name: Point, qitem: struct, qtype: Point, qptype: , natural: struct Point, line 11, using
|
||||
INSTANCEVARIABLE, name: y, qitem: y, qtype: x, qptype: , natural: xy, line 11, using
|
||||
}
|
||||
<globals> {
|
||||
FUNCTION, name: Foo, qitem: Foo(), qtype: , qptype: , natural: void Foo(), line 13, using
|
||||
}
|
||||
<locals> {
|
||||
x Point, line: 14
|
||||
v Vector<Point>, line: 15
|
||||
y Point, line: 16
|
||||
vv Vector<Point>, line: 17
|
||||
i Point, line: 18
|
||||
ii Point, line: 19
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue