Fix zero_ext documentation
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / exprs.c
index e5c73512815753e6689e02e74ceb9e84716bad1d..cd605f39d307b5dd4187b327c7f9b9d2483c6f3e 100644 (file)
@@ -1,14 +1,9 @@
-main (argc, argv, envp)
-     int argc;
-     char **argv;
-     char **envp;
+int main (int argc, char **argv, char **envp)
 {
     extern void dummy();
-#ifdef usestubs
-    set_debug_traps();
-    breakpoint();
-#endif
     dummy();
+    return 0;
+    
 }
 
 /* We put main() right up front so its line number doesn't keep changing.  */
@@ -44,7 +39,6 @@ unsigned long v_unsigned_long;
 
 float          v_float;
 double         v_double;
-
 /*
  *     Now some derived types, which are arrays, functions-returning,
  *     pointers, structures, unions, and enumerations.
@@ -71,6 +65,10 @@ unsigned long        v_unsigned_long_array[2];
 float          v_float_array[2];
 double         v_double_array[2];
 
+/**** initialized array *******/
+
+int            v_int_array_init[2] = { 10, 20 };
+
 /**** pointers *******/
 
 char           *v_char_pointer;
@@ -180,6 +178,7 @@ union tu_link {
 enum colors {red, green, blue} color;
 enum cars {chevy, ford, porsche} clunker;
 
+struct t_struct *null_t_struct;
 
 void dummy()
 {
@@ -203,8 +202,6 @@ void dummy()
   
   v_float = 100.0;
   v_double = 200.0;
-
-
   v_char_array[0] = v_char;
   v_signed_char_array[0] = v_signed_char;
   v_unsigned_char_array[0] = v_unsigned_char;
@@ -223,7 +220,6 @@ void dummy()
 
   v_float_array[0] = v_float;
   v_double_array[0] = v_double;
-
   v_char_pointer = &v_char;
   v_signed_char_pointer = &v_signed_char;
   v_unsigned_char_pointer = &v_unsigned_char;
This page took 0.025646 seconds and 4 git commands to generate.