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

Side by Side Diff: gdb/testsuite/gdb.cp/overload.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/oranking.exp ('k') | gdb/testsuite/gdb.cp/overload.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 void foofunc (int); 9 void foofunc (int);
10 void foofunc (int, signed char *); 10 void foofunc (int, signed char *);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 foo foo_instance3(foo_instance2); 128 foo foo_instance3(foo_instance2);
129 129
130 // Some calls to ensure all the functions are emitted. 130 // Some calls to ensure all the functions are emitted.
131 K::staticoverload(); 131 K::staticoverload();
132 K::staticoverload(2); 132 K::staticoverload(2);
133 K::staticoverload(2, 3); 133 K::staticoverload(2, 3);
134 N::nsoverload(); 134 N::nsoverload();
135 N::nsoverload(2); 135 N::nsoverload(2);
136 N::nsoverload(2, 3); 136 N::nsoverload(2, 3);
137 137
138 #ifdef usestubs
139 set_debug_traps();
140 breakpoint();
141 #endif
142
143 overloadNamespace (1); 138 overloadNamespace (1);
144 overloadNamespace (dummyInstance); 139 overloadNamespace (dummyInstance);
145 XXX::overloadNamespace ('a'); 140 XXX::overloadNamespace ('a');
146 141
147 // Verify that intToChar should work: 142 // Verify that intToChar should work:
148 intToChar(1); 143 intToChar(1);
149 144
150 marker1(); // marker1-returns-here 145 marker1(); // marker1-returns-here
151 XXX::marker2(); // marker1-returns-here 146 XXX::marker2(); // marker1-returns-here
152 147
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7, 228 int foo::overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7,
234 int a8, int a9, int a10, int a11) 229 int a8, int a9, int a10, int a11)
235 { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 = 230 { a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 =
236 a10 = a11 = 0; return 11;} 231 a10 = a11 = 0; return 11;}
237 232
238 233
239 234
240 int K::staticoverload () { return 1; } 235 int K::staticoverload () { return 1; }
241 int K::staticoverload (int x) { return x; } 236 int K::staticoverload (int x) { return x; }
242 int K::staticoverload (int x, int y) { return x + y; } 237 int K::staticoverload (int x, int y) { return x + y; }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.cp/oranking.exp ('k') | gdb/testsuite/gdb.cp/overload.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698