⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 templates.cc

📁 gdb-6.8 Linux下的调试程序 最新版本
💻 CC
📖 第 1 页 / 共 2 页
字号:
/* This test code is from Wendell Baker (wbaker@comet.berkeley.edu) */#include <stddef.h>int a_i;char a_c;double a_d;typedef void *Pix;intf(int i){ return 0; }intf(int i, char c){ return 0; }intf(int i, char c, double d){ return 0; }intf(int i, char c, double d, char *cs){ return 0; }intf(int i, char c, double d, char *cs, void (*fig)(int, char)){ return 0; }intf(int i, char c, double d, char *cs, void (*fig)(char, int)){ return 0; }class R {public:    int i;};class S {public:    int i;};class T {public:    int i;};char g(char, const char, volatile char){ return 'c'; }char g(R, char&, const char&, volatile char&){ return 'c'; }char g(char*, const char*, volatile char*){ return 'c'; }char g(S, char*&, const char*&, volatile char*&){ return 'c'; }signed char g(T,signed char, const signed char, volatile signed char){ return 'c'; }signed char g(T, R, signed char&, const signed char&, volatile signed char&){ return 'c'; }signed char g(T, signed char*, const signed char*, volatile signed char*){ return 'c'; }signed char g(T, S, signed char*&, const signed char*&, volatile signed char*&){ return 'c'; }unsigned char g(unsigned char, const unsigned char, volatile unsigned char){ return 'c'; }unsigned char g(R, unsigned char&, const unsigned char&, volatile unsigned char&){ return 'c'; }unsigned char g(unsigned char*, const unsigned char*, volatile unsigned char*){ return 'c'; }unsigned char g(S, unsigned char*&, const unsigned char*&, volatile unsigned char*&){ return 'c'; }short g(short, const short, volatile short){ return 0; }short g(R, short&, const short&, volatile short&){ return 0; }short g(short*, const short*, volatile short*){ return 0; }short g(S, short*&, const short*&, volatile short*&){ return 0; }signed short g(T, signed short, const signed short, volatile signed short){ return 0; }signed short g(T, R, signed short&, const signed short&, volatile signed short&){ return 0; }signed short g(T, signed short*, const signed short*, volatile signed short*){ return 0; }signed short g(T, S, double, signed short*&, const signed short*&, volatile signed short*&){ return 0; }unsigned short g(unsigned short, const unsigned short, volatile unsigned short){ return 0; }unsigned short g(R, unsigned short&, const unsigned short&, volatile unsigned short&){ return 0; }unsigned short g(unsigned short*, const unsigned short*, volatile unsigned short*){ return 0; }unsigned short g(S, unsigned short*&, const unsigned short*&, volatile unsigned short*&){ return 0; }int g(int, const int, volatile int){ return 0; }int g(R, int&, const int&, volatile int&){ return 0; }int g(int*, const int*, volatile int*){ return 0; }int g(S, int*&, const int*&, volatile int*&){ return 0; }signed int g(T, signed int, const signed int, volatile signed int){ return 0; }signed int g(T, R, signed int&, const signed int&, volatile signed int&){ return 0; }signed int g(T, signed int*, const signed int*, volatile signed int*){ return 0; }signed int g(T, S, signed int*&, const signed int*&, volatile signed int*&){ return 0; }unsigned int g(unsigned int, const unsigned int, volatile unsigned int){ return 0; }unsigned int g(R, unsigned int&, const unsigned int&, volatile unsigned int&){ return 0; }unsigned int g(unsigned int*, const unsigned int*, volatile unsigned int*){ return 0; }unsigned int g(S, unsigned int*&, const unsigned int*&, volatile unsigned int*&){ return 0; }long g(long, const long, volatile long){ return 0; }long g(R, long&, const long&, volatile long&){ return 0; }long g(long*, const long*, volatile long*){ return 0; }long g(S, long*&, const long*&, volatile long*&){ return 0; }signed long g(T, signed long, const signed long, volatile signed long){ return 0; }signed long g(T, R, signed long&, const signed long&, volatile signed long&){ return 0; }signed long g(T, signed long*, const signed long*, volatile signed long*){ return 0; }signed long g(T, S, signed long*&, const signed long*&, volatile signed long*&){ return 0; }unsigned long g(unsigned long, const unsigned long, volatile unsigned long){ return 0; }unsigned long g(S, unsigned long&, const unsigned long&, volatile unsigned long&){ return 0; }unsigned long g(unsigned long*, const unsigned long*, volatile unsigned long*){ return 0; }unsigned long g(S, unsigned long*&, const unsigned long*&, volatile unsigned long*&){ return 0; }#ifdef __GNUC__long long g(long long, const long long, volatile long long){ return 0; }long long g(S, long long&, const long long&, volatile long long&){ return 0; }long long g(long long*, const long long*, volatile long long*){ return 0; }long long g(R, long long*&, const long long*&, volatile long long*&){ return 0; }signed long long g(T, signed long long, const signed long long, volatile signed long long){ return 0; }signed long long g(T, R, signed long long&, const signed long long&, volatile signed long long&){ return 0; }signed long long g(T, signed long long*, const signed long long*, volatile signed long long*){ return 0; }signed long long g(T, S, signed long long*&, const signed long long*&, volatile signed long long*&){ return 0; }unsigned long long g(unsigned long long, const unsigned long long, volatile unsigned long long){ return 0; }unsigned long long g(R, unsigned long long*, const unsigned long long*, volatile unsigned long long*){ return 0; }unsigned long long g(unsigned long long&, const unsigned long long&, volatile unsigned long long&){ return 0; }unsigned long long g(S, unsigned long long*&, const unsigned long long*&, volatile unsigned long long*&){ return 0; }#endiffloat g(float, const float, volatile float){ return 0; }float g(char, float&, const float&, volatile float&){ return 0; }float g(float*, const float*, volatile float*){ return 0; }float g(char, float*&, const float*&, volatile float*&){ return 0; }double g(double, const double, volatile double){ return 0; }double g(char, double&, const double&, volatile double&){ return 0; }double g(double*, const double*, volatile double*){ return 0; }double g(char, double*&, const double*&, volatile double*&){ return 0; }#ifdef __GNUC__long double g(long double, const long double, volatile long double){ return 0; }long double g(char, long double&, const long double&, volatile long double&){ return 0; }long double g(long double*, const long double*, volatile long double*){ return 0; }long double g(char, long double*&, const long double*&, volatile long double*&){ return 0; }#endifclass c {public:    c(int) {};    int i;};class c g(c, const c, volatile c){ return 0; }c g(char, c&, const c&, volatile c&){ return 0; }c g(c*, const c*, volatile c*){ return 0; }c g(char, c*&, const c*&, volatile c*&){ return 0; }/*void h(char = 'a'){ }void h(char, signed char = 'a'){ }void h(unsigned char = 'a'){ }*//*void h(char = (char)'a'){ }void h(char, signed char = (signed char)'a'){ }void h(unsigned char = (unsigned char)'a'){ }void h(short = (short)43){ }void h(char, signed short = (signed short)43){ }void h(unsigned short = (unsigned short)43){ }void h(int = (int)43){ }void h(char, signed int = (signed int)43){ }void h(unsigned int = (unsigned int)43){ }void h(long = (long)43){ }void h(char, signed long = (signed long)43){ }void h(unsigned long = (unsigned long)43){ }#ifdef __GNUC__void h(long long = 43){ }void h(char, signed long long = 43){ }void h(unsigned long long = 43){ }#endifvoid h(float = 4.3e-10){ }void h(double = 4.3){ }#ifdef __GNUC__void h(long double = 4.33e33){ }#endif*//* An unneeded printf() definition - actually, just a stub - used to occupy   this space.  It has been removed and replaced with this comment which   exists to occupy some lines so that templates.exp won't need adjustment.  */class T1 {public:    static void* operator new(size_t) throw ();    static void operator delete(void *pointer);    void operator=(const T1&);    T1& operator=(int);    int operator==(int) const;    int operator==(const T1&) const;    int operator!=(int) const;    int operator!=(const T1&) const;    int operator<=(int) const;    int operator<=(const T1&) const;    int operator<(int) const;    int operator<(const T1&) const;    int operator>=(int) const;    int operator>=(const T1&) const;    int operator>(int) const;    int operator>(const T1&) const;    void operator+(int) const;    T1& operator+(const T1&) const;    void operator+=(int) const;    T1& operator+=(const T1&) const;    T1& operator++() const;    void operator-(int) const;    T1& operator-(const T1&) const;    void operator-=(int) const;    T1& operator-=(const T1&) const;    T1& operator--() const;    void operator*(int) const;    T1& operator*(const T1&) const;    void operator*=(int) const;    T1& operator*=(const T1&) const;    void operator/(int) const;    T1& operator/(const T1&) const;    void operator/=(int) const;    T1& operator/=(const T1&) const;    void operator%(int) const;    T1& operator%(const T1&) const;    void operator%=(int) const;    T1& operator%=(const T1&) const;    void operator&&(int) const;    T1& operator&&(const T1&) const;    void operator||(int) const;    T1& operator||(const T1&) const;    void operator&(int) const;    T1& operator&(const T1&) const;    void operator&=(int) const;    T1& operator&=(const T1&) const;    void operator|(int) const;    T1& operator|(const T1&) const;    void operator|=(int) const;    T1& operator|=(const T1&) const;    void operator^(int) const;    T1& operator^(const T1&) const;    void operator^=(int) const;    T1& operator^=(const T1&) const;    T1& operator!() const;    T1& operator~() const;};void* T1::operator new(size_t) throw (){ return 0; }voidT1::operator delete(void *pointer){ }class T2 {public:    T2(int i): integer(i)	{ }    int integer;};int operator==(const T2&, const T2&){ return 0; }int operator==(const T2&, char){ return 0; }int operator!=(const T2&, const T2&){ return 0; }int operator!=(const T2&, char){ return 0; }int operator<=(const T2&, const T2&){ return 0; }int operator<=(const T2&, char)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -