/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c: In function ‘test_nonconst_static_assert’:
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:9:19: error: expression in static assertion is not constant
   _Static_assert (i > 0, "message"); /* { dg-error "expression in static assertion is not constant" } */                                          
                   ▲────                                                                                                                           
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c: In function ‘test_bad_argument_types’:                    
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:22:23: warning: passing argument 2 of ‘test_callee’ makes pointer from integer without a cast [-Wint-conversion]
   test_callee (first, first + second + third, third); /* { dg-warning "passing argument 2 of 'test_callee' makes pointer from integer without a cast" }  */                                            
                       ▲─────────────────────                                                                                                                                                           
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:18:13: note: expected ‘const char *’ but argument is of type ‘int’                                              
 extern void test_callee (int first, const char *second, int third);                                                                                                                                    
                                                                                                                                                                                                       
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:57:23: warning: passing argument 2 of ‘test_callee’ from incompatible pointer type [-Wincompatible-pointer-types]
   test_callee (first, &first, third); /* { dg-warning "passing argument 2 of 'test_callee' from incompatible pointer type" } */                                                                         
                       ▲─────                                                                                                                                                                            
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:18:13: note: expected ‘const char *’ but argument is of type ‘int *’                                             
 extern void test_callee (int first, const char *second, int third);                                                                                                                                     
                                                                                                                                                                                                        
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:69:16: warning: passing argument 1 of ‘test_callee’ makes integer from pointer without a cast [-Wint-conversion] 
   test_callee ("hello world", "", third); /* { dg-warning "passing argument 1 of 'test_callee' makes integer from pointer without a cast" } */                                                          
                ▲────────────                                                                                                                                                                            
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:18:13: note: expected ‘int’ but argument is of type ‘char *’                                                     
 extern void test_callee (int first, const char *second, int third);                                                                                                                                     
                                                                                                                                                                                                        
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c: In function ‘call_of_non_function_ptr’:                                                                         
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:87:3: error: called object is not a function or function pointer                                                 
   (argP - argQ)(); /* { dg-error "called object is not a function or function pointer" } */                                                                                                             
   ▲────────────                                                                                                                                                                                         
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:99:3: error: called object ‘argP’ is not a function or function pointer                                          
   argP();       /* { dg-error "called object 'argP' is not a function or function pointer" } */                                                                                                         
   ▲───                                                                                                                                                                                                  
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:85:39: note: declared here                                                                                       
 void call_of_non_function_ptr (char **argP, char **argQ)                                                                                                                                                
                                       ▲───                                                                                                                                                              
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c: In function ‘bad_binary_op’:                                                                                    
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:114:11: error: invalid operands to binary / (have ‘__m128 {aka float}’ and ‘const int *’)                        
   myvec[1]/ptr; /* { dg-error "invalid operands to binary /" } */                                                                                                                                       
   ───────────                                                                                                                                                                                          
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c: In function ‘another_bad_binary_op’:                                                                            
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:129:27: error: invalid operands to binary + (have ‘struct s’ and ‘struct s’)                                     
   return some_function () + some_function (); /* { dg-error "invalid operands to binary +" } */                                                                                                         
          ────────────────  ────────────────                                                                                                                                                            
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c: In function ‘surplus_return_when_void’:                                                                         
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:139:10: warning: return’ with a value, in function returning void                                               
   return 500; /* { dg-warning "'return' with a value, in function returning void" } */                                                                                                                  
          ▲──                                                                                                                                                                                            
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:137:6: note: declared here                                                                                       
 void surplus_return_when_void (void)                                                                                                                                                                    
                                                                                                                                                                                                        
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c: In function ‘missing_return_value’:                                                                             
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:152:3: warning: return’ with no value, in function returning non-void                                           
   return; /* { dg-warning "'return' with no value, in function returning non-void" } */                                                                                                                 
                                                                                                                                                                                                        
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:150:5: note: declared here                                                                                       
 int missing_return_value (void)                                                                                                                                                                         
                                                                                                                                                                                                        
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c: In function ‘address_of_local’:                                                                                 
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:166:10: warning: function returns address of local variable [-Wreturn-local-addr]                                
   return &i; /* { dg-warning "function returns address of local variable" } */                                                                                                                          
          ▲─                                                                                                                                                                                             
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c: At top level:                                                                                                   
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:176:6: error: conflicting types for ‘redefined_fn’                                                               
 void redefined_fn (int i); /* { dg-error "conflicting types for 'redefined_fn'" } */                                                                                                                    
      ▲───────────                                                                                                                                                                                       
/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-ranges-2.c:175:5: note: previous declaration of ‘redefined_fn’ was here                                                     
 int redefined_fn (int i); /* { dg-message "previous declaration of 'redefined_fn' was here" } */                                                                                                        
     ▲───────────