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

Side by Side Diff: gdb/testsuite/gdb.base/langs0.c

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.base/langs.exp ('k') | gdb/testsuite/gdb.base/lineinc.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 /* This file is actually in C, it is not supposed to simulate something 1 /* This file is actually in C, it is not supposed to simulate something
2 translated from another language or anything like that. */ 2 translated from another language or anything like that. */
3 #ifdef PROTOTYPES 3 #ifdef PROTOTYPES
4 extern int fsub_(); 4 extern int fsub_();
5 5
6 int csub (int x) 6 int csub (int x)
7 #else 7 #else
8 int 8 int
9 csub (x) 9 csub (x)
10 int x; 10 int x;
11 #endif 11 #endif
12 { 12 {
13 return x + 1; 13 return x + 1;
14 } 14 }
15 15
16 int 16 int
17 langs0__2do () 17 langs0__2do ()
18 { 18 {
19 return fsub_ () + 2; 19 return fsub_ () + 2;
20 } 20 }
21 21
22 int 22 int
23 main () 23 main ()
24 { 24 {
25 #ifdef usestubs
26 set_debug_traps();
27 breakpoint();
28 #endif
29 if (langs0__2do () == 5003) 25 if (langs0__2do () == 5003)
30 /* Success. */ 26 /* Success. */
31 return 0; 27 return 0;
32 else 28 else
33 return 1; 29 return 1;
34 } 30 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/langs.exp ('k') | gdb/testsuite/gdb.base/lineinc.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698