Lines Matching defs:int
5 operator int() const;
18 operator int(); // expected-error{{conversion function must be a non-static member function}}
20 operator int; // expected-error{{'operator int' cannot be the name of a variable or data member}}
22 typedef int func_type(int);
23 typedef int array_type[10];
27 void operator bool(int, ...) const; // expected-error{{conversion function cannot have a return type}} \
30 operator bool(int a = 4, int b = 6) const; // expected-error{{conversion function cannot have any parameters}}
41 typedef int INT;
42 typedef INT* INT_PTR;
45 operator int(); // expected-note {{previous declaration is here}}
46 operator int**(); // expected-note {{previous declaration is here}}
48 operator INT(); // expected-error{{conversion function cannot be redeclared}}
87 operator int(); // expected-note {{candidate function}}
97 int i = a; // OK. calls XB::operator int();
142 typedef int type;
149 struct A<T, T> : A<T, int> { };
158 A<float, int> &af2 = E();
159 const A<float, int> &caf2 = E();
170 E2<int&> e2i; // expected-note{{in instantiation}}
176 *operator int(); // expected-error {{put the complete type after 'operator'}}
230 explicit auto_ptr(int *);
240 X x(auto_ptr(new int));
241 return X(auto_ptr(new int));
294 operator int();
302 using Derived1::operator int;
310 int i = ud; // expected-error{{ambiguous conversion from derived class 'rdar8018274::SuperDerived' to base class 'rdar8018274::Base'}}
314 operator int();
318 operator int();
322 using Base2::operator int;
328 int i = ed;
337 struct Iterator<int> {
338 typedef Container<int> container_type;
347 Container<int> test;
352 operator int();
357 int x = C().operator int();
377 T& operator[](int);
378 const T& operator[](int)const;
381 generic_list<generic_list<int> > l;
382 array<array<int> > a = l;
413 operator struct S { int n; } (); // expected-error {{'PR18234::A::S' cannot be defined in a type specifier}}