/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:34: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:46: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); ▲