ultimatepp/uppdev/Parser2/test.cpp
cxl 2e4b276e07 Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-04 08:34:39 +00:00

75 lines
No EOL
813 B
C++

/*
struct alpha {
int beta;
};
struct oper2 {
int oper2m;
};
struct oper3 {
int oper3m;
};
struct X {
alpha a;
alpha operator[](int i);
};
struct Y : X{
X b;
int a;
struct H {
int x;
};
H x;
};
template <class T>
struct Tm {
template <class V>
struct H {
T Test();
V Test2();
};
T x;
};
void Test(int a, long b)
{
X().;
Y x;
x.;
x.a. ; // should not work...
x.X::a. ;
x.b.a. ;
x[]. ;
x(). ;
x. ;
x-> ;
y. ;
Tm<X> tm;
Tm< X > :: H <alpha > tt;
tt. ;
tt.Test(). ;
tt.Test2(). ;
X:: ;
;
}
void Foo(volatile ::String)
{
}
*/
SqlInsert::operator SqlStatement() const {}
struct String {
operator std::string() const { return std::string(Begin(), End()); }
};