1 // RUN: %clang_cc1 -fsyntax-only -verify %s
8 x.int; // expected-error{{expected unqualified-id}}
9 x.~int(); // expected-error{{expected a class name}}
10 x.operator; // expected-error{{expected a type}}
11 x.operator typedef; // expected-error{{expected a type}} expected-error{{type name does not allow storage class}}
17 x->int; // expected-error{{expected unqualified-id}}
18 x->~int(); // expected-error{{expected a class name}}
19 x->operator; // expected-error{{expected a type}}
20 x->operator typedef; // expected-error{{expected a type}} expected-error{{type name does not allow storage class}}
25 template <class A, class B> struct pair {};
28 pair<int, int> z = minmax({}); // expected-error {{expected expression}}
37 string::iterator i = s.foo(); // expected-error {{no member named 'foo'}}
42 // Make sure we don't crash.
43 namespace rdar11293995 {
46 explicit Length(PassRefPtr<CalculationValue>); // expected-error {{unknown type name}} \
47 expected-error {{expected ')'}} \
48 expected-note {{to match this '('}}
56 enum EFillSizeType { Contain, Cover, SizeLength, SizeNone };
65 void setSize(FillSize f) { m_sizeType = f.type;}
67 unsigned m_sizeType : 2;