• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include<stddef.h>
2 #include<iostream>
3 #include<cstdlib>
4 #include"demangle.h"
5 
6 /* Number of arguments */
Fi_i(int bar)7 int Fi_i(int bar) 		{ return 0; }
Fi_s(short bar)8 int Fi_s(short bar) 		{return 0; }
Fii_i(int bar,int goo)9 int Fii_i(int bar, int goo) 	{ return 0; }
Fiii_i(int bar,int goo,int hoo)10 int Fiii_i(int bar, int goo, int hoo) { return 0; }
Fie_i(int bar,...)11 int Fie_i(int bar, ...) 	{ return 0; }
12 
13 /* Return types */
Fv_v(void)14 void Fv_v(void) 		{ ; }
Fv_c(void)15 char Fv_c(void) 		{ return 0; }
Fv_Sc(void)16 signed char Fv_Sc(void) 	{ return 0; }
Fv_Uc(void)17 unsigned char Fv_Uc(void) 	{ return 0; }
Fv_s(void)18 short Fv_s(void) 		{ return 0; }
Fv_Us(void)19 unsigned short Fv_Us(void) 	{ return 0; }
Fv_i(void)20 int Fv_i(void) 			{ return 0; }
Fv_Ci(void)21 const int Fv_Ci(void) 		{ return 0; }
Fv_Ui(void)22 unsigned int Fv_Ui(void) 	{ return 0; }
Fv_Vi(void)23 volatile int Fv_Vi(void) 	{ return 0; }
Fv_l(void)24 long Fv_l(void) 		{ return 0; }
Fv_Ul(void)25 unsigned long Fv_Ul(void) 	{ return 0; }
Fv_f(void)26 float Fv_f(void) 		{ return 0; }
Fv_g(void)27 double Fv_g(void) 		{ return 0; }
Fv_Lg(void)28 long double Fv_Lg(void) 	{ return 0; }
29 
30 /* Pointers */
Fv_Pv(void)31 void *Fv_Pv(void) 		{ return 0; }
Fv_PPv(void)32 void **Fv_PPv(void) 		{ return 0; }
33 
34 /* References */
Fv_Ri(void)35 int& Fv_Ri(void) 		{ static int x; return x; }
36 
37 /* Argument types */
FPi_i(int * a)38 int FPi_i(int *a) 		{ return 0; }
FA10_i_i(int a[10])39 int FA10_i_i(int a[10]) 	{ return 0; }
Fc_i(char bar)40 int Fc_i(char bar) 		{ return 0; }
Ff_i(float bar)41 int Ff_i(float bar) 		{ return 0; }
Fg_i(double bar)42 int Fg_i(double bar) 		{ return 0; }
43 
44 /* Function pointers */
45 typedef int (*x)(int);
46 typedef int (*y)(short);
47 
Fx_i(x fnptr)48 int Fx_i(x fnptr) 		{ return 0; }
Fxx_i(x fnptr,x fnptr2)49 int Fxx_i(x fnptr, x fnptr2) 	{ return 0; }
Fxxx_i(x fnptr,x fnptr2,x fnptr3)50 int Fxxx_i(x fnptr, x fnptr2,
51 	x fnptr3) 		{ return 0; }
Fxxi_i(x fnptr,x fnptr2,x fnptr3,int i)52 int Fxxi_i(x fnptr, x fnptr2,
53 	x fnptr3, int i) 	{ return 0; }
Fxix_i(x fnptr,int i,x fnptr3)54 int Fxix_i(x fnptr, int i,
55 	x fnptr3) 		{ return 0; }
Fxyxy_i(x fnptr,y fnptr2,x fnptr3,y fnptr4)56 int Fxyxy_i(x fnptr, y fnptr2,
57 	x fnptr3, y fnptr4) 	{ return 0; }
58 
59 /* Class methods */
60 class myclass;
myclass(void)61 myclass::myclass(void) 		{ myint = 0; }
myclass(int x)62 myclass::myclass(int x) 	{ myint = x; }
~myclass()63 myclass::~myclass() 		{ ; }
64 
Fi_i(int bar)65 int myclass::Fi_i(int bar) 	{ return myint; }
Fis_i(int bar)66 int myclass::Fis_i(int bar) 	{ return bar; }
67 
operator new(size_t size)68 void* myclass::operator new(size_t size)
69 {
70   void* p = malloc(size);return p;
71 }
operator delete(void * p)72 void myclass::operator delete(void *p) {free(p);}
73 
operator ++()74 myclass myclass::operator++() 	{ return myclass(++myint); }
operator ++(int)75 myclass myclass::operator++(int) { return myclass(myint++); }
76 
77 /* Binary */
operator +(int x)78 myclass myclass::operator+(int x) { return myclass(myint + x); }
79 
80 /* Assignment */
operator =(const myclass & from)81 myclass& myclass::operator=(const myclass& from)
82 {
83 	myint = from.myint;
84 	return *this;
85 }
86 
87 /* test clashes */
88 class nested;
89 
nested(void)90 nested::nested(void) 		{ ; }
~nested()91 nested::~nested() 		{ ; }
Fi_i(int bar)92 int nested::Fi_i(int bar) 	{ return bar; }
93 
Fmyclass_v(myclass m)94 void Fmyclass_v(myclass m) 	{ ; }
Fmxmx_v(myclass arg1,x arg2,myclass arg3,x arg4)95 void Fmxmx_v(myclass arg1, x arg2,
96 	myclass arg3, x arg4) 	{ ; }
97 
98