Lines Matching defs:int
16 template <class T> T f(int);
20 f<int>(1);
28 template<int (*g)()> struct X {
29 int arr[fold(g == &f<int>) ? 1 : -1];
84 int &r2 = g(t); // expected-error {{undeclared}}
88 int &f(B);
89 int &g(B); // expected-note {{in dependent base class}}
100 void foo(int *arg) { checked_cast<const C *>(arg); }
102 template<typename T> T f(int);
105 f<int>(1);
112 int n;
137 void f(int);
139 template<typename T> void S<T>::f(int = 0) {} // expected-error {{default arguments cannot be added}}
153 int f;
154 void test1(A::S as) { f(as); } // expected-error {{called object type 'int'}}
158 void test5(A::S as) { int f; f(as); } // expected-error {{called object type 'int'}}
183 int f;
200 A &operator=(int&); // expected-note 2{{candidate}}
201 A &operator+=(int&);
210 void test(A a, int n, char c, float f) {
221 void f(int a, int b, int c, int *x) {
242 typedef int type;
249 typedef int type;
264 typedef int type;
269 template <class T1, class T2, int I> struct B {
270 typedef int type;
275 static const int my_I = I;
276 static const int my_I2 = I+0;
277 static const int my_I3 = my_I;
285 template <int, typename T> struct X { typedef T type; };
287 static const int i = 5;
288 X<i, int>::type w; // FIXME: expected-error {{missing 'typename'}}
292 int f();
294 template <class T> int A<T>::f() {
302 void dr225_g(int); // expected-note {{should be declared prior to the call site}}
303 template void dr225_f(int); // expected-note {{in instantiation of}}
350 template<typename=void, typename X, typename, typename Y> int foo(X, Y);
351 template<typename, typename X, typename=void, typename Y> int foo(X, Y);
352 int x = foo(0, 0);
361 int n;
363 int n;
378 template<> void f<int>() {}
391 int i; // expected-note {{here}}
394 int j = i; // expected-error {{undeclared identifier 'i'; did you mean 'inner::i'?}}
402 void *p = int();
413 template struct B<int>; // ok
420 float &g(T, int);
423 int &g(NS::T, float);
424 int main() {
427 extern int &g(NS::T, float);
428 int &s = g(parm, 1);
437 template <int X> void f(); // expected-note 2{{candidate}}
438 template <int X> void g(B);
491 typedef E<int> F;
524 } catch (int) {
534 void f(int);
540 void f(int);
551 void f(int);
558 int \u040d\u040e = 0;
572 template<int I> void f(double x[]);
575 template<int I = 3> void g(double x[]); // expected-error 0-1{{extension}}
592 void operator delete(void*, int); // expected-note {{here}}
598 void operator delete(void*, int);
634 struct A { A(int); }; // expected-note {{here}}
650 void f(const int);
651 template<typename> void g(int);
658 int &f(int);
659 template<int> int &g(int); // expected-note {{candidate}}
660 int &h();
662 int &w = b.f(0);
663 int &x = b.g<int>(0); // expected-error {{no match}}
664 int &y = b.h();
668 virtual void f(const int) = 0;
671 void f(int);
684 template struct A<int>; // expected-note {{previous}}
685 template struct A<int>; // expected-error {{duplicate explicit instantiation}}
703 template struct B<int>; // expected-error {{undefined}}
748 int f(int = 0, ...);
749 int k = f();
750 int l = f(0);
751 int m = f(0, 0);
788 int n;
805 template <> void f(int);
834 template <> void f(int) {} // expected-error {{no function template matches}}
845 template void g(int); // expected-error {{ambiguous}}
855 typedef int *intp;
856 int *p = intp();
857 int a[fold(intp() ? -1 : 1)];
862 typedef void f1(int);
863 typedef void f2(int, int);
864 typedef void f3(int, int, int);
958 template<typename T> void f(T, int); // expected-note {{match}}
959 template<typename T> void f(int, T); // expected-note {{match}}
960 template<> void f<int>(int, int) {} // expected-error {{ambiguous}}
974 A<short>::C::B<int*> absip; // expected-error {{private}}
984 struct D : C<int> {}; // expected-note {{instantiation}}
992 void f() throw(int);
993 int main() {
995 (void)static_cast<void (*)() throw(int)>(f); // FIXME: ill-formed
998 void (*q)() throw(int) = f;
1003 typedef int f();
1015 static operator int() { return 0; } // expected-error {{static}}
1021 typedef int type;
1052 operator int();
1055 operator int(); // expected-note {{}}
1059 int *p = new int[S()]; // expected-error 0-1{{extension}}
1060 int *q = new int[T()]; // expected-error {{ambiguous}}