/home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.c: In function ‘test_nonconst_static_assert’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.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-tree-expr-ranges.c: In function ‘test_bad_argument_types’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.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-tree-expr-ranges.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-tree-expr-ranges.c:36: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-tree-expr-ranges.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-tree-expr-ranges.c:50: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-tree-expr-ranges.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-tree-expr-ranges.c: In function ‘call_of_non_function_ptr’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.c:70: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-tree-expr-ranges.c:77: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-tree-expr-ranges.c:68: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-tree-expr-ranges.c: In function ‘bad_binary_op’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.c:97: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-tree-expr-ranges.c: In function ‘another_bad_binary_op’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.c:115:4: error: invalid operands to binary + (have ‘struct s’ and ‘struct t’) return (some_function ()┐ ────────────────┴‘struct s’ + some_other_function ()); /* { dg-error "invalid operands to binary +" } */┐ ▲ ────────────────────── ┴‘struct t’ /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.c: In function ‘surplus_return_when_void’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.c:127: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-tree-expr-ranges.c:125:6: note: declared here void surplus_return_when_void (void) ▲ /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.c: In function ‘missing_return_value’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.c:140: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-tree-expr-ranges.c:138:5: note: declared here int missing_return_value (void) ▲ /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.c: In function ‘address_of_local’: /home/david/coding-3/gcc-git-rich-errors/src/gcc/testsuite/gcc.dg/diagnostic-tree-expr-ranges.c:154:10: warning: function returns address of local variable [-Wreturn-local-addr] return &i; /* { dg-warning "function returns address of local variable" } */ ▲─