OLD | NEW |
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 Loading... |
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 Loading... |
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; } |
OLD | NEW |