# 1 "1.cc" # 1 "/usr/include/stdio.h" 1 3 # 1 "/usr/include/sys/cdefs.h" 1 3 # 106 "/usr/include/sys/cdefs.h" 3 # 175 "/usr/include/sys/cdefs.h" 3 # 192 "/usr/include/sys/cdefs.h" 3 # 43 "/usr/include/stdio.h" 2 3 # 1 "/usr/include/machine/ansi.h" 1 3 typedef int __attribute__((__mode__(__DI__))) __int64_t; typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef short __int16_t; typedef unsigned short __uint16_t; typedef int __int32_t; typedef unsigned int __uint32_t; typedef int __intptr_t; typedef unsigned int __uintptr_t; # 44 "/usr/include/stdio.h" 2 3 typedef unsigned int size_t; typedef __int64_t fpos_t; struct __sbuf { unsigned char *_base; int _size; }; typedef struct __sFILE { unsigned char *_p; int _r; int _w; short _flags; short _file; struct __sbuf _bf; int _lbfsize; void *_cookie; int (*_close) (void *) ; int (*_read) (void *, char *, int) ; fpos_t (*_seek) (void *, fpos_t, int) ; int (*_write) (void *, const char *, int) ; struct __sbuf _ub; unsigned char *_up; int _ur; unsigned char _ubuf[3]; unsigned char _nbuf[1]; struct __sbuf _lb; int _blksize; fpos_t _offset; } FILE; extern "C" { extern FILE __sF[]; } extern "C" { void clearerr (FILE *) ; int fclose (FILE *) ; int feof (FILE *) ; int ferror (FILE *) ; int fflush (FILE *) ; int fgetc (FILE *) ; int fgetpos (FILE *, fpos_t *) ; char *fgets (char *, int, FILE *) ; FILE *fopen (const char *, const char *) ; int fprintf (FILE *, const char *, ...) ; int fputc (int, FILE *) ; int fputs (const char *, FILE *) ; size_t fread (void *, size_t, size_t, FILE *) ; FILE *freopen (const char *, const char *, FILE *) ; int fscanf (FILE *, const char *, ...) ; int fseek (FILE *, long, int) ; int fsetpos (FILE *, const fpos_t *) ; long ftell (FILE *) ; size_t fwrite (const void *, size_t, size_t, FILE *) ; int getc (FILE *) ; int getchar (void) ; char *gets (char *) ; extern const int sys_nerr; extern const char * const sys_errlist[]; void perror (const char *) ; int printf (const char *, ...) ; int putc (int, FILE *) ; int putchar (int) ; int puts (const char *) ; int remove (const char *) ; int rename (const char *, const char *) ; void rewind (FILE *) ; int scanf (const char *, ...) ; void setbuf (FILE *, char *) ; int setvbuf (FILE *, char *, int, size_t) ; int sprintf (char *, const char *, ...) ; int sscanf (const char *, const char *, ...) ; FILE *tmpfile (void) ; char *tmpnam (char *) ; int ungetc (int, FILE *) ; int vfprintf (FILE *, const char *, char * ) ; int vprintf (const char *, char * ) ; int vsprintf (char *, const char *, char * ) ; } extern "C" { char *ctermid (char *) ; FILE *fdopen (int, const char *) ; int fileno (FILE *) ; int ftrylockfile (FILE *) ; void flockfile (FILE *) ; void funlockfile (FILE *) ; } extern "C" { int ftruncate (int, __int64_t ) ; __int64_t lseek (int, __int64_t , int) ; void *mmap (void *, size_t, int, int, int, __int64_t ) ; int truncate (const char *, __int64_t ) ; } extern "C" { int asprintf (char **, const char *, ...) __attribute__((__format__ (__printf__, 2 , 3 ))) ; char *ctermid_r (char *) ; char *fgetln (FILE *, size_t *) ; int fpurge (FILE *) ; int fseeko (FILE *, __int64_t , int) ; __int64_t ftello (FILE *) ; int getw (FILE *) ; int pclose (FILE *) ; FILE *popen (const char *, const char *) ; int putw (int, FILE *) ; void setbuffer (FILE *, char *, int) ; int setlinebuf (FILE *) ; char *tempnam (const char *, const char *) ; int snprintf (char *, size_t, const char *, ...) __attribute__((__format__ (__printf__, 3 , 4 ))) ; int vasprintf (char **, const char *, char * ) __attribute__((__format__ (__printf__, 2 , 0 ))) ; int vsnprintf (char *, size_t, const char *, char * ) __attribute__((__format__ (__printf__, 3 , 0 ))) ; int vscanf (const char *, char * ) __attribute__((__format__ (__scanf__, 1 , 0 ))) ; int vsscanf (const char *, const char *, char * ) __attribute__((__format__ (__scanf__, 2 , 0 ))) ; } extern "C" { FILE *funopen (const void *, int (*)(void *, char *, int), int (*)(void *, const char *, int), fpos_t (*)(void *, fpos_t, int), int (*)(void *)) ; } extern "C" { int __srget (FILE *) ; int __svfscanf (FILE *, const char *, char * ) ; int __swbuf (int, FILE *) ; } static inline int __sputc(int _c, FILE *_p) { if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) return (*_p->_p++ = _c); else return (__swbuf(_c, _p)); } # 373 "/usr/include/stdio.h" 3 # 438 "/usr/include/stdio.h" 3 # 1 "1.cc" 2 # 1 "/usr/include/stdlib.h" 1 3 typedef int rune_t; typedef int wchar_t; typedef struct { int quot; int rem; } div_t; typedef struct { long quot; long rem; } ldiv_t; extern int __mb_cur_max; extern "C" { void abort (void) __attribute__((__noreturn__)) ; int abs (int) __attribute__((__const__)) ; int atexit (void (*)(void)) ; double atof (const char *) ; int atoi (const char *) ; long atol (const char *) ; void *bsearch (const void *, const void *, size_t, size_t, int (*)(const void *, const void *)) ; void *calloc (size_t, size_t) ; div_t div (int, int) __attribute__((__const__)) ; void exit (int) __attribute__((__noreturn__)) ; void free (void *) ; char *getenv (const char *) ; long labs (long) __attribute__((__const__)) ; ldiv_t ldiv (long, long) __attribute__((__const__)) ; void *malloc (size_t) ; void qsort (void *, size_t, size_t, int (*)(const void *, const void *)) ; int rand (void) ; void *realloc (void *, size_t) ; void srand (unsigned) ; double strtod (const char *, char **) ; long strtol (const char *, char **, int) ; unsigned long strtoul (const char *, char **, int) ; int system (const char *) ; int mblen (const char *, size_t) ; size_t mbstowcs (wchar_t *, const char *, size_t) ; int wctomb (char *, wchar_t) ; int mbtowc (wchar_t *, const char *, size_t) ; size_t wcstombs (char *, const wchar_t *, size_t) ; int putenv (const char *) ; int setenv (const char *, const char *, int) ; double drand48 (void) ; double erand48 (unsigned short[3]) ; long jrand48 (unsigned short[3]) ; void lcong48 (unsigned short[7]) ; long lrand48 (void) ; long mrand48 (void) ; long nrand48 (unsigned short[3]) ; unsigned short *seed48 (unsigned short[3]) ; void srand48 (long) ; void *alloca (size_t) ; __uint32_t arc4random (void) ; void arc4random_addrandom (unsigned char *dat, int datlen) ; void arc4random_stir (void) ; char *getbsize (int *, long *) ; char *cgetcap (char *, char *, int) ; int cgetclose (void) ; int cgetent (char **, char **, char *) ; int cgetfirst (char **, char **) ; int cgetmatch (char *, char *) ; int cgetnext (char **, char **) ; int cgetnum (char *, char *, long *) ; int cgetset (char *) ; int cgetstr (char *, char *, char **) ; int cgetustr (char *, char *, char **) ; int daemon (int, int) ; char *devname (int, int) ; int getloadavg (double [], int) ; char *group_from_gid (unsigned long, int) ; int heapsort (void *, size_t, size_t, int (*)(const void *, const void *)) ; char *initstate (unsigned long, char *, long) ; int mergesort (void *, size_t, size_t, int (*)(const void *, const void *)) ; int radixsort (const unsigned char **, int, const unsigned char *, unsigned) ; int sradixsort (const unsigned char **, int, const unsigned char *, unsigned) ; int rand_r (unsigned *) ; long random (void) ; void *reallocf (void *, size_t) ; char *realpath (const char *, char resolved_path[]) ; char *setstate (char *) ; void srandom (unsigned long) ; void srandomdev (void) ; char *user_from_uid (unsigned long, int) ; __int64_t strtoq (const char *, char **, int) ; __uint64_t strtouq (const char *, char **, int) ; void unsetenv (const char *) ; } # 2 "1.cc" 2 class my_class { public: void f1() { puts("function f1"); } void f2() { puts("function f2"); } void f3() { puts("function f3"); } void f4() { puts("function f4"); } }; int main() { typedef void (my_class::*ptf) (void); ptf pfunc[] = {&my_class::f1,&my_class::f2,&my_class::f3,&my_class::f4}; for (int i=0; i < 4; i++ )(*pfunc[i])(); return(0); };