Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: gdb/testsuite/gdb.cp/cplusfuncs.cc

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/testsuite/gdb.cp/cplabel.exp ('k') | gdb/testsuite/gdb.cp/cplusfuncs.exp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <stddef.h> 1 #include <stddef.h>
2 2
3 class foo { 3 class foo {
4 public: 4 public:
5 foo (int); 5 foo (int);
6 foo (int, const char *); 6 foo (int, const char *);
7 foo (foo&); 7 foo (foo&);
8 ~foo (); 8 ~foo ();
9 9
10 void operator * (foo&); 10 void operator * (foo&);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void operator delete[] (void *); 51 void operator delete[] (void *);
52 /**/ operator int (); 52 /**/ operator int ();
53 /**/ operator char* (); 53 /**/ operator char* ();
54 54
55 int foofunc (int); // forced to have int return type, which is required 55 int foofunc (int); // forced to have int return type, which is required
56 int foofunc (int, signed char *); // forced to have int return type, which is required 56 int foofunc (int, signed char *); // forced to have int return type, which is required
57 int ifoo; 57 int ifoo;
58 const char *ccpfoo; 58 const char *ccpfoo;
59 }; 59 };
60 60
61 #ifdef usestubs
62 extern "C" {
63 void set_debug_traps();
64 void breakpoint();
65 };
66 #endif
67
68 int main () { 61 int main () {
69 #ifdef usestubs
70 set_debug_traps();
71 breakpoint();
72 #endif
73 int z=3; 62 int z=3;
74 } 63 }
75 64
76 foo::foo (int i) { ifoo = i;} 65 foo::foo (int i) { ifoo = i;}
77 foo::foo (int i, const char *ccp) { ifoo = i; ccpfoo = ccp; } 66 foo::foo (int i, const char *ccp) { ifoo = i; ccpfoo = ccp; }
78 foo::foo (foo& afoo) { afoo.ifoo = 0; } 67 foo::foo (foo& afoo) { afoo.ifoo = 0; }
79 foo::~foo () {} 68 foo::~foo () {}
80 69
81 void foo::operator * (foo& afoo) { afoo.ifoo = 0; } 70 void foo::operator * (foo& afoo) { afoo.ifoo = 0; }
82 void foo::operator % (foo& afoo) { afoo.ifoo = 0; } 71 void foo::operator % (foo& afoo) { afoo.ifoo = 0; }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 long * dm_type_long_star (long * p) { return p; } 186 long * dm_type_long_star (long * p) { return p; }
198 int dm_type_short (short i) { return i; } 187 int dm_type_short (short i) { return i; }
199 int dm_type_long (long i) { return i; } 188 int dm_type_long (long i) { return i; }
200 int dm_type_unsigned_int (unsigned int i) { return i; } 189 int dm_type_unsigned_int (unsigned int i) { return i; }
201 int dm_type_unsigned_short (unsigned short i) { return i; } 190 int dm_type_unsigned_short (unsigned short i) { return i; }
202 int dm_type_unsigned_long (unsigned long i) { return i; } 191 int dm_type_unsigned_long (unsigned long i) { return i; }
203 int dm_type_void (void) { return 0; } 192 int dm_type_void (void) { return 0; }
204 void * dm_type_void_star (void * p) { return p; } 193 void * dm_type_void_star (void * p) { return p; }
205 typedef int myint; 194 typedef int myint;
206 int dm_type_typedef (myint i) { return i; } 195 int dm_type_typedef (myint i) { return i; }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.cp/cplabel.exp ('k') | gdb/testsuite/gdb.cp/cplusfuncs.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698