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

Side by Side Diff: gdb/testsuite/gdb.base/all-types.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/all-bin.exp ('k') | gdb/testsuite/gdb.base/annota1.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * the basic C types. 2 * the basic C types.
3 */ 3 */
4 4
5 #if !defined (__STDC__) && !defined (_AIX) 5 #if !defined (__STDC__) && !defined (_AIX)
6 #define signed /**/ 6 #define signed /**/
7 #endif 7 #endif
8 8
9 char v_char; 9 char v_char;
10 signed char v_signed_char; 10 signed char v_signed_char;
(...skipping 10 matching lines...) Expand all
21 long v_long; 21 long v_long;
22 signed long v_signed_long; 22 signed long v_signed_long;
23 unsigned long v_unsigned_long; 23 unsigned long v_unsigned_long;
24 24
25 float v_float; 25 float v_float;
26 double v_double; 26 double v_double;
27 27
28 int main () 28 int main ()
29 { 29 {
30 extern void dummy(); 30 extern void dummy();
31 #ifdef usestubs
32 set_debug_traps();
33 breakpoint();
34 #endif
35 dummy(); 31 dummy();
36 return 0; 32 return 0;
37 33
38 } 34 }
39 35
40 void dummy() 36 void dummy()
41 { 37 {
42 /* Some linkers (e.g. on AIX) remove unreferenced variables, 38 /* Some linkers (e.g. on AIX) remove unreferenced variables,
43 so make sure to reference them. */ 39 so make sure to reference them. */
44 v_char = 'A'; 40 v_char = 'A';
45 v_signed_char = 'B'; 41 v_signed_char = 'B';
46 v_unsigned_char = 'C'; 42 v_unsigned_char = 'C';
47 43
48 v_short = 3; 44 v_short = 3;
49 v_signed_short = 4; 45 v_signed_short = 4;
50 v_unsigned_short = 5; 46 v_unsigned_short = 5;
51 47
52 v_int = 6; 48 v_int = 6;
53 v_signed_int = 7; 49 v_signed_int = 7;
54 v_unsigned_int = 8; 50 v_unsigned_int = 8;
55 51
56 v_long = 9; 52 v_long = 9;
57 v_signed_long = 10; 53 v_signed_long = 10;
58 v_unsigned_long = 11; 54 v_unsigned_long = 11;
59 55
60 v_float = 100.343434; 56 v_float = 100.343434;
61 v_double = 200.565656; 57 v_double = 200.565656;
62 } 58 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/all-bin.exp ('k') | gdb/testsuite/gdb.base/annota1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698