Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / c-c++-common / pr35503-1.c
blob25e3721df939009262c7cb757e7f9c71bfe441f3
1 /* { dg-do compile } */
2 /* { dg-options "-Wrestrict" } */
4 int foo (char *__restrict buf, const char *__restrict fmt, ...);
6 void f(void)
8 char buf[100] = "hello";
9 foo (buf, "%s-%s", buf, "world"); /* { dg-warning "passing argument 1 to restrict-qualified parameter aliases with argument 3" } */