invalid-member-expr.cpp [plain text]
class X {};
void test() {
X x;
x.int; x.~int(); x.operator; x.operator typedef; }
void test2() {
X *x;
x->int; x->~int(); x->operator; x->operator typedef; }
namespace test3 {
template <class A, class B> struct pair {};
void test0() {
pair<int, int> z = minmax({}); }
struct string {
class iterator {};
};
void test1() {
string s;
string::iterator i = s.foo(); }
}
namespace rdar11293995 {
struct Length {
explicit Length(PassRefPtr<CalculationValue>); expected-error {{expected ')'}} \
expected-note {{to match this '('}}
};
struct LengthSize {
Length m_width;
Length m_height;
};
enum EFillSizeType { Contain, Cover, SizeLength, SizeNone };
struct FillSize {
EFillSizeType type;
LengthSize size;
};
class FillLayer {
public:
void setSize(FillSize f) { m_sizeType = f.type;}
private:
unsigned m_sizeType : 2;
};
}